-
Notifications
You must be signed in to change notification settings - Fork 27.2k
remove traceur from the build pipeline #3974
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| declare var React: any; | ||
| export default React; | ||
| export var createElement: Function; | ||
| export var render: Function; |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,7 @@ module.exports = function makeNodeTree(destinationPath) { | |
| experimentalDecorators: true, | ||
| declaration: false, | ||
| mapRoot: '', /* force sourcemaps to use relative path */ | ||
| module: 'commonjs', | ||
| module: 'CommonJS', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this change needed?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nope, picked it up from Ian. I believe TS normalizes the string. It would complain if it receives a module format it doesn't recognize. Will revert.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope, I was wrong, since we don't go through the CLI interface we have to pass a string that is a key in the following const enum https://github.com/Microsoft/TypeScript/blob/master/lib/typescript.d.ts#L1344 |
||
| noEmitOnError: true, | ||
| rootDir: '.', | ||
| rootFilePaths: ['angular2/traceur-runtime.d.ts', 'angular2/globals.d.ts'], | ||
|
|
||
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't this test now test that we don't have source mapping at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, before we did ts -> es6 -> es5 in two shots, and didn't properly merge the sourcemaps for the two jumps. So in the test we had to decode twice (once per transpilation).
Now, we have a direct ts -> es5, so we just need to read in one source map and compare with the original. Notice we read the expected line from modules/examples/src/sourcemap/index.ts