-
Notifications
You must be signed in to change notification settings - Fork 108
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 import a babel webpack plugin ? #298
Comments
I don't think @babel/plugin-syntax-bigint can help us here. That allows babel to parse the code, but it's not babel that is failing here, it's webpack. Webpack uses acorn as its parser, and there does appear to be an acorn-bigint plugin that can parse bigint, but unforunately webpack doesn't let you add plugins to acorn. See for example webpack/webpack#10216 (comment) However, from some quick testing it looks like the newest webpack builds in support for bigint. It should be enough for us to upgrade the version of webpack that ember-auto-import is using. We have been pinned to a slightly older version due to an npm bug that breaks users of webpack after 4.29.0 (see #192 (comment)). But it's probably time to just try jumping ahead and hope the dependencies have shuffled enough that the npm bug doesn't bite much. Let's see if we can release #299 |
I have fixed the webpack dependency in my yarn.lock => this is working. ember build as well now if I build the production env,
How can I debug this ? |
error in production was beacuse of ie11 in targets for production build. ticket can be close, i saw no issue with webpack 4.43 |
I'm trying to add bigint-money dependencies but i got thier error :
I saw @babel/plugin-syntax-bigint could do the job but i don't know how to configure this plugin ?
The text was updated successfully, but these errors were encountered: