You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using the published ESM build in a Webpack project, but encountered errors directly upon importing the plugin using:
importLicensePluginfrom'webpack-license-plugin';
The error in question:
SyntaxError: Named export 'WebpackError' not found. The requested module 'webpack' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
Digging some more into it, there seems to be two issues with the current ESM bundle preventing it from being used in an ES Module webpack config file:
I tried using the published ESM build in a Webpack project, but encountered errors directly upon importing the plugin using:
The error in question:
Digging some more into it, there seems to be two issues with the current ESM bundle preventing it from being used in an ES Module webpack config file:
The text was updated successfully, but these errors were encountered: