Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map files #114

Open
jacobharasimo opened this issue Sep 25, 2015 · 0 comments · May be fixed by #120
Open

Map files #114

jacobharasimo opened this issue Sep 25, 2015 · 0 comments · May be fixed by #120

Comments

@jacobharasimo
Copy link

Is there a way to specify source root for generated source maps?

my grunt task looks like this:

typescript: {
      base: {
src:'<%= yeoman.app %>/**/{,*/}*.ts'
        dest: '.tmp/scripts/<%= typescript.base.options.target %>',
        options: {
          verbose:true,
          module: 'commonjs', //or commonjs
          target: 'es5', //or es3
          sourceMap: true,
          keepDirectoryHierarchy: true,
          references: './typings/tsd.d.ts'
        }
      }
}

the problem i have is it generates the sourcemap with the wrong 'path' to the ts file

for instance my map file has this:

{"version":3,"file":"asideMenuCtrl.js","sourceRoot":"","sources":["../../../../../../app/components/asideMenu/asideMenuCtrl.ts"]

yet what it needs is this

{"version":3,"file":"asideMenuCtrl.js","sourceRoot":"","sources":["/components/asideMenu/asideMenuCtrl.ts"]

as the app folder is the site root. is there some way to set this so it knows as i have tried many things but nothing seams to work right...

@davidparsson davidparsson linked a pull request Jan 12, 2016 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant