Why does SWC output "unknown" first before any code? #11247
Replies: 1 comment 4 replies
-
|
I don't think it's injected by SWC. If it is, please provide a minimal reproduction. |
Beta Was this translation helpful? Give feedback.
4 replies
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 calling
swc compilewith this config:Then the first thing SWC outputs is a line containing only
unknown, which is obviously not valid JavaScript.How do I prevent this behaviour? I'm not using Node for anything btw.
I've got my own little tool for concatenating JavaScript files into bigger files, and then I'm running SWC on the bigger files - I'm not using any kind of Modules, just plain JavaScript.
Please see attached screenshot.
Beta Was this translation helpful? Give feedback.
All reactions