angular-cli uses es6 modules as output format of TypeScript: In tsconfig.json:
{
"compilerOptions": {
"modules": "es6",
"target": "es5",
...
How is that processed by webpack later on to make it work in es5?
If I understand it correctly, many projects use babel to get es6 modules working, but I have not found any reference to babel inside angular-cli.
I am trying to set up a webpack project from the start, because it turned out that the webpack config that angular-cli uses is just not good/flexible enough for our project.
When I tried to use es6 modules, I ended up with unprocessed "import" statements in my "bundled" js file, so obviously I am doing something wrong.
