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

Webpack 2 Tree Shaking - Can't get Karma to work #1128

Closed
rafiwardak2003 opened this issue Oct 25, 2016 · 1 comment
Closed

Webpack 2 Tree Shaking - Can't get Karma to work #1128

rafiwardak2003 opened this issue Oct 25, 2016 · 1 comment

Comments

@rafiwardak2003
Copy link

I got tree shaking to work with Angular 2.1/Webpack 2 beta. All seems to be good, except my test runner doesn't work anymore. As soon as I switched TypeScript module from commonjs to es6 (target has remained the same, es5) to get tree shaking working, Karma now blows up. I get a bunch of unexpected token (referring to the ES6 import, and a bunch of other errors, failed to parse file... something.ts. Has anyone had luck getting TypeScript/Tree Shaking working with Angular 2 yet?

@joshwiens
Copy link
Contributor

@rafiwardak2003 - Tree shaking is broken, relevant issues to watch

webpack/webpack#2867

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

No branches or pull requests

2 participants