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.
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