manfredsteyer / ngx-build-plus

Extend the Angular CLI's default build behavior without ejecting, e. g. for Angular Elements
1.19k stars 136 forks source link

How to use es module as argument to --extra-webpack-config #336

Open chan-dev opened 2 years ago

chan-dev commented 2 years ago

I've converted the webpack file to use es modules because of a package that imports a es module package.

Here's how i run the file.

ng build --extra-webpack-config projects/demo/webpack.externals.mjs --project demo

But this throws an error of "Must use import to load Es modules".

Thanks in advance.