From 8e087a8156cfeb05f638c32d378a6201c3fbdab7 Mon Sep 17 00:00:00 2001 From: jihwooon Date: Mon, 18 Dec 2023 15:20:00 +0900 Subject: [PATCH] =?UTF-8?q?Nest.js=EC=97=90=20=EB=8D=B0=EC=BD=94=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=20=EC=97=90=EB=9F=AC=20=EB=B0=9C=EC=83=9D?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20swcrc=20=EC=84=A4=EC=A0=95=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=B6=94=EA=B0=80=ED=95=98=EB=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nest.js에는 swc전용 지원이 없어 swcrc 설정 파일을 따로 추가해야합니다. swcrc 설정에 decorators 설정을 true 두고 decorators 메타 데이터와 레거시를 사용 할 수 있도록 true 설정해야 합니다. seeAlso: - https://github.com/DanielRamosAcosta/nest-class-validator-swc - https://github.com/swc-project/swc/issues/1362 --- server/.swcrc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 server/.swcrc diff --git a/server/.swcrc b/server/.swcrc new file mode 100644 index 0000000..170c760 --- /dev/null +++ b/server/.swcrc @@ -0,0 +1,18 @@ +{ + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": false, + "decorators": true + }, + "transform": { + "legacyDecorator": true, + "decoratorMetadata": true + }, + "target": "es2018" + }, + "module": { + "type": "commonjs", + "noInterop": true + } +}