Skip to content

Commit

Permalink
Merge pull request #87 from sopt-makers/fix/ui-esmodule
Browse files Browse the repository at this point in the history
fix(ui) : esModule 호환 설정 변경
  • Loading branch information
Brokyeom authored May 11, 2024
2 parents dc14cde + 6e14a23 commit 3820329
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/empty-lizards-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sopt-makers/ui": patch
---

fix esModule setup
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions packages/ui/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down

0 comments on commit 3820329

Please sign in to comment.