You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The key issue is that we should not run any module transformations when compiling from CJS to CJS.
However, swc always considers the input source to be ESM.
Currently, we only have three options for the input source: Module, Script, and Unknown.
We should try to skip the module transformations based on the input source.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
_interop_require_wildcard
is missing, if hasmodule
configured tocommonjs
Input code
Config
Playground link
https://play.swc.rs/?version=1.3.66&code=H4sIAAAAAAAAA0vOzysuUUhUsFUoSi0szSxK1VBPy89X1%2BRKBkrk56Tq5eSnayRqcmXmFuQXlWio55dkpBYBpQEdbRHiOAAAAA%3D%3D&config=H4sIAAAAAAAAAz2NSwqAMAwF956iZO1CXHoHD1FqED9NSxNREe9u6m%2BT5A3Dy1EYAyM7aMyhpwaxqUfRDMh1VVdQPjzaxJh%2BTwnvJHbLpuwR2aUhymufed0DBm5Dt8yYvYUmCivdEvgPf4%2B1JEsueB9oZHgqzgsyPIPvowAAAA%3D%3D
Expected behavior
_interop_require_wildcard
presentsActual behavior
_interop_require_wildcard
is missingVersion
1.3.66
Additional context
No response
The text was updated successfully, but these errors were encountered: