4 ms·
I've been using rollupify in my projects for a few months now with no issues, but I didnt know it didnt work on npm modules. I would be interesting to see bench
by simonlc 10y ago
I've been using rollupify in my projects for a few months now with no issues, but I didnt know it didnt work on npm modules. I would be interesting to see benchmarks of rollupify vs rollup on ots own to see if its worth changing bundlers.
- nolanl 10y ago(rollupify author here.) It works if you configure Rollup to use a plugin like https://github.com/rollup/rollup-plugin-node-resolve https://github.com/rollup/rollup-plugin-node-resolve, and it works best if the third-party packages also expose jsnext:main or the new "module" field in package.json. Overall though there are still lots of edge cases that aren't well-covered without plugins (such as globals like process.nextTick etc.). Some details here: https://github.com/rollup/rollup/issues/552 https://github.com/rollup/rollup/issues/552