Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chan-dev opened this issue May 1, 2022 · 0 comments
Open

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

chan-dev opened this issue May 1, 2022 · 0 comments

Comments

@chan-dev
Copy link

chan-dev commented May 1, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant