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
Does not compile, because picomatch is a cjs-only module with no default export.
Error: 'default' is not exported by https://cdn.jsdelivr.net/npm/[email protected]/index.js
Modification Proposal
picomatch looks abandoned (typed proposition hangs for 9 month already), just replicate the functionality within plugin itself.
I can probably create a PR if you want.
The text was updated successfully, but these errors were encountered:
pkit
changed the title
pluginutils (or any other rollup part) should not depend on "blatantly non ESM" modules
[pluginutils] (or any other rollup part) should not depend on "blatantly non ESM" modules
Jul 22, 2020
Thanks for opening an issue. Unfortunately this is not within a reasonable proposal. Plugins are intended for use at development-time and not at runtime. If you are attempting to use any during runtime in a browser environment, please use a compatible compiler.
Use case is codesandbox-like in-browser dev env.
Where custom rollup.config.js should be able to load and transpile correctly.
Although I think what I really need is just a commonjs plugin without the load() hook.
Thanks.
Expected Behavior / Situation
Compiles in browser
Actual Behavior / Situation
Does not compile, because
picomatch
is a cjs-only module with no default export.Modification Proposal
picomatch
looks abandoned (typed proposition hangs for 9 month already), just replicate the functionality within plugin itself.I can probably create a PR if you want.
The text was updated successfully, but these errors were encountered: