From b028fa653a5d26bc907a1bccbaa3466ec35ffeb0 Mon Sep 17 00:00:00 2001 From: Mathis Date: Thu, 17 Oct 2024 16:46:15 +0200 Subject: [PATCH] Add SWC configuration file for TypeScript support This commit introduces a .swrc file to define SWC configuration. It specifies the use of TypeScript syntax and targets ES2021, along with support for decorator metadata and legacy decorators. Additionally, the module type is set to CommonJS and source maps are enabled. --- apps/backend/.swrc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 apps/backend/.swrc diff --git a/apps/backend/.swrc b/apps/backend/.swrc new file mode 100644 index 0000000..9d802ee --- /dev/null +++ b/apps/backend/.swrc @@ -0,0 +1,16 @@ +{ + "jsc": { + "parser": { + "syntax": "typescript" + }, + "target": "es2021", + "transform": { + "decoratorMetadata": true, + "legacyDecorator": true + } + }, + "module": { + "type": "commonjs" + }, + "sourceMaps": true +} \ No newline at end of file