-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic requires are not currently supported by rollup-plugin-commonjs #5
Comments
This is also a major issue when trying to integrate with https://github.com/zeit/pkg. |
I'm still getting this error Error: Dynamic requires are not currently supported by rollup-plugin-commonjs Has this been fixed or pushed? |
Fix has been pushed. I am unsure of what rollup considers a "dynamic require" this is not dynamic, but it does use |
Please reopen this issue. I have a minimal reproduction here: https://github.com/westonpace/winston-rollup-test To reproduce:
The issue in question is this line: Line 28 in 834f7c9
|
I don't use rollup, but I think you need to actually use the https://github.com/rollup/rollup-plugin-node-resolve package you're importing in your rollup config, and specify |
Yes, that works. I hadn't thought to look for it since I am not running in the browser. |
This issue also causes a slew of warnings (that then become runtime issues I have to assume, looking at the output files) with evanw/esbuild. It looks like my best workaround for the time being is to fork this repo and use https://classic.yarnpkg.com/en/docs/selective-version-resolutions/ to point at that fork? |
When I use Rollup (https://rollupjs.org/) to bundle Winston, the following error is thrown when running the app:
The issue is caused by https://github.com/winstonjs/logform/blob/master/index.js#L27. Ideally, it'd be great to revert back to 972dbec#diff-168726dbe96b3ce427e7fedce31bb0bcL21. Although more verbose, it would open up Winston to being bundled by Rollup once winstonjs/winston#1100 is merged.
The text was updated successfully, but these errors were encountered: