wmr icon indicating copy to clipboard operation
wmr copied to clipboard

browserslist extends clause not supported

Open sventschui opened this issue 4 years ago • 1 comments

Putting an extends my-node-module inside browserslist in package.json crashes wmr with the following error:

Error: Dynamic requires are not currently supported by @rollup/plugin-commonjs

sventschui avatar Jan 29 '21 18:01 sventschui

Seems like browserslist must be doing a dynamic require() to get the extends value. I think we should be able to allow-list it somehow here: https://github.com/preactjs/wmr/blob/99e56d782621a25e292977a74cff662ab5561c94/rollup.config.js#L131

developit avatar Feb 05 '21 16:02 developit