angular-cli uses es6 modules as the output typeScript format: In tsconfig.json:
{ "compilerOptions": { "modules": "es6", "target": "es5", ...
How is this handled by webpack later to get it working in es5?
If I understand correctly, many projects use babel to run es6 modules, but I did not find a link to babel inside angular-cli.
I am trying to create a webpack project from the very beginning, because it turned out that the webpack configuration used by angular-cli is simply not suitable / flexible enough for our project.
When I tried to use es6 modules, I ended up with raw import operations in my js file bundle, so obviously I'm doing something wrong.
source share