PatrickJS-starter icon indicating copy to clipboard operation
PatrickJS-starter copied to clipboard

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

Open rafiwardak2003 opened this issue 10 years ago • 1 comments

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?

rafiwardak2003 avatar Oct 25 '16 20:10 rafiwardak2003

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

https://github.com/webpack/webpack/issues/2867

joshwiens avatar Oct 29 '16 23:10 joshwiens