Replies: 6 comments 4 replies
-
You can copy them |
Beta Was this translation helpful? Give feedback.
-
ran into this problem today. JSON import is becoming a standard behavior in the JS ecosystem. I believe SWC should support it as well. |
Beta Was this translation helpful? Give feedback.
-
It's supported
2022년 8월 25일 (목) 오전 6:04, Mohsen Azimi ***@***.***>님이 작성:
… ran into this problem today. JSON import is becoming a standard behavior
in the JS ecosystem. I believe SWC should support it as well.
—
Reply to this email directly, view it on GitHub
<#4863 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHELSJ5OVUGBK4QVXJPOGXTV22E7VANCNFSM5XQS23ZA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I don't see the JSON file in the output. Am I doing something wrong? I'm using |
Beta Was this translation helpful? Give feedback.
-
It is possible to define this option in a configuration file instead of via command line flag? |
Beta Was this translation helpful? Give feedback.
-
I resolved this using the Source: https://stackoverflow.com/questions/70866153/import-json-file-in-ts-and-compile-it-with-swc |
Beta Was this translation helpful? Give feedback.
-
I can't seem to find an equivalent for
resolveJsonModule
. When I compile my project withtsc
, it moves imported.json
files into the dist folder.swc
doesn't and I get the expected error:Any idea if that's possible for swc?
Beta Was this translation helpful? Give feedback.
All reactions