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

Update addon generator to support sourcemaps. #137

Merged
merged 2 commits into from
Feb 20, 2018

Conversation

chriskrycho
Copy link
Member

@chriskrycho chriskrycho commented Feb 20, 2018

  • Set the correct default in the tsconfig.json blueprint.
  • Add a note in the README with details on how to enable support for sourcemaps in Ember CLI/Babel.

Resolves #129.

- Set the correct default in the `tsconfig.json` blueprint.
- Add a note in the README with details on how to enable support
  for sourcemaps in Ember CLI/Babel.
README.md Outdated
babel: {
sourceMaps: 'inline',
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing a paren 🙂

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@chriskrycho chriskrycho merged commit 6695f61 into master Feb 20, 2018
@chriskrycho chriskrycho deleted the update-main-generator-for-sourcemaps branch February 20, 2018 21:00
@chriskrycho chriskrycho changed the title Update addon generator to support sourcemaps. 13:46:39 Update addon generator to support sourcemaps. Feb 20, 2018
@dwickern
Copy link
Contributor

The option is also documented at https://github.com/babel/ember-cli-babel#enabling-source-maps

I'm surprised source maps work at all without running into ef4/fast-sourcemap-concat#39. Maybe the tsc output works around whatever bug causes babel to output invalid source maps?

Is there any performance impact enabling this? I'm not so concerned with typescript's performance but rather the rest of the broccoli pipeline.

@chriskrycho
Copy link
Member Author

chriskrycho commented Feb 20, 2018

@dwickern there's definitely a perf hit on the Babel side, though we were already paying that—and I added a note in the README to that effect. Running it locally, TS's generation of source maps seems to have little to no impact, which is nice.

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 this pull request may close these issues.

3 participants