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

transpiler: add sourcemaps #20

Closed
tbosch opened this issue Sep 27, 2014 · 1 comment · Fixed by #131
Closed

transpiler: add sourcemaps #20

tbosch opened this issue Sep 27, 2014 · 1 comment · Fixed by #131

Comments

@tbosch
Copy link
Contributor

tbosch commented Sep 27, 2014

when an exception is reported the stack trace is from transpiled file, but my code is in source file.

Need to generate source maps for debug code
Need to rewrite stack trace to have original line numbers.

@tbosch tbosch changed the title build&karma: add sourcemaps build: add sourcemaps Sep 29, 2014
@tbosch tbosch changed the title build: add sourcemaps transpiler: add sourcemaps Sep 29, 2014
@mhevery mhevery modified the milestone: October Sep 29, 2014
@mhevery mhevery added the ready label Oct 14, 2014
@naomiblack naomiblack added ready and removed ready labels Oct 14, 2014
vojtajina added a commit to vojtajina/angular that referenced this issue Oct 30, 2014
This changes the API of `tools/transpiler/index.js`. I believe it’s 
not used anywhere besides `gulp-traceur.js` and
`karma-traceur-preprocessor.js`. Instead of returning the transpiled
string, `compile()` returns a result object such as:
```js
{
  js: ‘transpiled code’,
  sourceMap: null || {}
}
```

Closes angular#20
vojtajina added a commit to vojtajina/angular that referenced this issue Nov 4, 2014
For Karma, the source mapa are inlined inside each source file.
For `build/*` output, separate `*.map` file is created.

This changes the API of `tools/transpiler/index.js`. I believe this API
is only used in `gulp-traceur.js` and `karma-traceur-preprocessor.js`.
Instead of returning the transpiled string, `compile()` returns a result
object such as:
```js
{
  js: ‘transpiled code’,
  sourceMap: null || {}
}
```

Closes angular#20
vojtajina added a commit to vojtajina/angular that referenced this issue Nov 5, 2014
For Karma, the source mapa are inlined inside each source file.
For `build/*` output, separate `*.map` file is created.

This changes the API of `tools/transpiler/index.js`. I believe this API
is only used in `gulp-traceur.js` and `karma-traceur-preprocessor.js`.
Instead of returning the transpiled string, `compile()` returns a result
object such as:
```js
{
  js: ‘transpiled code’,
  sourceMap: null || {}
}
```

Closes angular#20
@vojtajina vojtajina removed the ready label Nov 5, 2014
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants