From aebbe2e2cd93551ae0c679078681e94af03ab3af Mon Sep 17 00:00:00 2001 From: Brokyeom Date: Sat, 11 May 2024 19:07:02 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore=20:=20esModule=20=ED=98=B8=ED=99=98?= =?UTF-8?q?=20=EC=84=A4=EC=A0=95=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/package.json | 2 +- packages/ui/tsup.config.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ui/package.json b/packages/ui/package.json index 46f16a5..98c08d7 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -3,7 +3,7 @@ "version": "1.1.7", "description": "sopt-makers의 frontend repository에 사용되는 ui를 제공해요.", "main": "./dist/index.js", - "module": "./dist/esm/index.js", + "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "license": "MIT", "scripts": { diff --git a/packages/ui/tsup.config.ts b/packages/ui/tsup.config.ts index 14c1fc0..a9a0fa7 100644 --- a/packages/ui/tsup.config.ts +++ b/packages/ui/tsup.config.ts @@ -4,6 +4,7 @@ import { defineConfig } from 'tsup'; export default defineConfig({ entry: ['index.ts', "cssVariables.ts"], format: ['cjs', 'esm'], // CommonJS와 ES Module 형식으로 출력 + outDir: 'dist', dts: true, sourcemap: true, esbuildPlugins: [vanillaExtractPlugin()], From 6e14a23f64c4ea5f59e8e3b1d5588f50df1b1379 Mon Sep 17 00:00:00 2001 From: Brokyeom Date: Sat, 11 May 2024 19:08:56 +0900 Subject: [PATCH 2/2] chore : changeset --- .changeset/empty-lizards-report.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/empty-lizards-report.md diff --git a/.changeset/empty-lizards-report.md b/.changeset/empty-lizards-report.md new file mode 100644 index 0000000..bbc954f --- /dev/null +++ b/.changeset/empty-lizards-report.md @@ -0,0 +1,5 @@ +--- +"@sopt-makers/ui": patch +--- + +fix esModule setup