From 5d1f0692f6bf2d9e2867cdab4c6edaadc7b4a37d 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 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 server/.swcrc diff --git a/server/.swcrc b/server/.swcrc new file mode 100644 index 0000000..f085f90 --- /dev/null +++ b/server/.swcrc @@ -0,0 +1,19 @@ +{ + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": false, + "decorators": true + }, + "transform": { + "legacyDecorator": true, + "decoratorMetadata": true + }, + "target": "es2018" + }, + "module": { + "type": "commonjs", + "noInterop": true + } + } + \ No newline at end of file