Replies: 1 comment 1 reply
-
It seems like a bug of swc. Can you file an issue? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to integrate SWC with Rollup by way of
rollup-plugin-swc
, with the intention of outputting an IIFE.However, no matter which options I pass to SWC, it tries to compile as a CommonJS module - which isn't what I'm using. This results in it trying to load
regenerator-runtime
viarequire()
which will never work as I don't have a CommonJS runtime available.How can I get SWC to forego this requirement and, perhaps, just assume it exists or otherwise import it some other way?
Beta Was this translation helpful? Give feedback.
All reactions