rollup/rollup

After Babel starts runtime and rolls up preserveModules=true, it will result in an extra layer of output structure

parlay96 opened this issue · 5 comments

Rollup Version

v4.9.1

Operating System (or Browser)

win

Node Version (if applicable)

No response

Link To Reproduction

Sorry, no

Expected Behaviour

image
After Babel starts runtime and rolls up preserveModules=true, it will result in an extra layer of output structure?,
Rollup preserveModules=true, packaging React will cause a node.modules package to appear, and an error will be reported after packaging

Actual Behaviour

image
Error reported after packaging

Here is Vue:Using Rollup
image
This is the same way I packaged Vue for my previous project, so there is no such issue

What problem is causing this?

my question and #3684 Similar

What problem is causing this?

#3684 (comment) Thank you, this has indeed solved my problem