Cannot build with modules only #21507
Comments
|
This has been added in version 13, See: #21484 This doesn't mean that the bundle will contain ES6 module syntax to load chunks instead of the the Webpack module loading syntax. ES6 module syntax is still experimental in Webpack https://webpack.js.org/configuration/experiments/#experimentsoutputmodule. Just to clarify the request, are you expecting to see ES6 imports/exports in the bundles? |
|
@alan-agius4 yes I am expecting |
|
In that case, this has been addressed in version 13 which is currently in pre-release stage via the linked PR above. |
|
Okay, that are good news. Thanks. I will opt-in into the beta once its out and try it. We are using Ionic so backwards comp. is not our focus ^^. |


Command (mark with an
x)Is this a regression?
I guess
Description
I am trying to build our app for modern browsers only (only type=module) but cannot get it working. Using a fresh ng new does not even work. I have created a browserslist in the root containing only "last 2 chrome versions" and left the target at "es2017" (ng g application did that). Even using "es2015" does not work.
Anything else relevant?
The text was updated successfully, but these errors were encountered: