TS + Node app runs with swc-node but not with swc-core / swc-cli #8348
Unanswered
maximelafarie
asked this question in
Q&A
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've got an app running with TS + Node which runs well with
swc-node, but when I'm running it only withswc-core / swc-clithe app crashes without any error.Do you have any idea why it works one way and not the other?
Here's my
.swcrc:{ "$schema": "https://json.schemastore.org/swcrc", "jsc": { "parser": { "syntax": "typescript", "decorators": true, "dynamicImport": true }, "transform": { "legacyDecorator": true, "decoratorMetadata": true }, "target": "es2022", "keepClassNames": true, "baseUrl": "." }, "exclude": [ "src/tests/**/*", "src/fixtures/**/*" ], "module": { "type": "commonjs" }, "sourceMaps": true, "minify": false }Beta Was this translation helpful? Give feedback.
All reactions