-
Notifications
You must be signed in to change notification settings - Fork 126
Conflict detection/avoidance for "require" aliases #232
Comments
I have attached a small project that exhibits this issue. The production build does not go through the code block that contains the conflicting variable.
|
Tiny test case here: rollup/rollup#1655 (comment) |
fix(package): update react-dom to version 16.0.0
Hi @mbostock et al, as it appears that @Rich-Harris is currently on an extended vacation with limited internet access and cannot release a new version to npm, I have set up a make-shift solution for anyone suffering from this bug. You can now npm install github:rollup-plugin-commonjs@rollup/rollup-plugin-commonjs#bundled-v8.2.3 which should contain all necessary build artefacts. |
Any ETA on an npm release? It took a lot of googling to get here. |
Unfortunately not. It seems @Rich-Harris is on extended vacation with limited internet access and I do not know who else can publish to npm. Until then I fear you need to stick with the github install. |
Work perfectly for me ! Thank for the set-up. I hope this is not vacation around the world ?! |
It seems like |
I'm getting
now, is this related? |
React 16 bundles now use rollup as well; this means some of them may contain aliased requires, which will clash with the ones generated by the local rollup.
Example:
React 16.0.0.0, node_modules/react/cjs/react.development.js
gets converted to
, which is obviously invalid.
This situation could be avoided if the name candidates were tested for uniqueness while increasing the uid.
Alternatively, either the separator ($$) or the start uid (0) could be configurable in transform.js .
The text was updated successfully, but these errors were encountered: