-
Notifications
You must be signed in to change notification settings - Fork 47
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
The requested module 'webpack-subresource-integrity' is a CommonJS module
#231
Comments
Btw, if I do import pkg from 'webpack-subresource-integrity';
const { SubresourceIntegrityPlugin } = pkg; I get
|
I was able to fix the issue by editing
I don't know if 1 breaks anything for legacy CJS users, I think 3 is because webpack isn't ESM (yet) and I have no idea why 2 helps. |
@marekdedic |
Hi, |
fwiw, there's an alternative manifest + SRI solution that seems to work in my esm webpack config, replacing
with
from https://github.com/webdeveric/webpack-assets-manifest ( i'm a bit surprised that asset-manifest + SRI are still not native to webpack ... ) |
Hi,
I'm trying to switch a project to
"type": "module"
, so I converted mywebpack.config.js
to include the following import:However, I am getting the following error:
See marekdedic/prosemirror-remark-example#3
Any ideas?
The text was updated successfully, but these errors were encountered: