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
When using the node module uuid an error is thrown during runtime:
crypto.getRandomValues() not supported.
After some research I found out that from @rollup/plugin-node-resolve version 11.0.0 onwards one needs to specify the option exportConditions: ['node'] in the rollup config for it to work.
Since microbundle does not expose the rollup config the only workaround for users is to downgrade @rollup/plugin-node-resolve@10.0.0 via yarn module resolutions.
Please add this option to the generated rollup config or expose it to the user.
* Resolve using "node" export condition for --target node
When bundling for a Node.js target, Microbundle should follow the "node" conditional package export key to match Node's own resolution. Fixes#886.
* lint
* Create fuzzy-trains-switch.md
* Update index.js
Description
When using the node module
uuid
an error is thrown during runtime:After some research I found out that from
@rollup/plugin-node-resolve
version11.0.0
onwards one needs to specify the optionexportConditions: ['node']
in the rollup config for it to work.Since microbundle does not expose the rollup config the only workaround for users is to downgrade
@rollup/plugin-node-resolve@10.0.0
via yarn module resolutions.Please add this option to the generated rollup config or expose it to the user.
Related Issues
The text was updated successfully, but these errors were encountered: