Replies: 1 comment 3 replies
-
|
I checked that webpack currently only supports exporting via ERROR in ./src/index.js 3:12-16
Can't import the named export 'main' (imported as 'main') from default-exporting module (only default export is available)
webpack 5.101.3 compiled with 1 error in 56 ms |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
JSON module supports named import only for
js/autobut not forjs/esm.If user imports json with import attributes, then json module should only provide default export which should follow the spec.
If user not using import attribute, then json module is capable to provide named exports even for
js/esmHow do you think @alexander-akait
Beta Was this translation helpful? Give feedback.
All reactions