Skip to content

Commit

Permalink
fix: esm が正常にimport できない問題修正 (#1506)
Browse files Browse the repository at this point in the history
* fix: esm build 修正

* fix

* fix

* Create old-impalas-hug.md

* fix: ignore config crate-ci/typos
  • Loading branch information
locona authored Mar 20, 2024
1 parent 3fec2cf commit 01e42dc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/old-impalas-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@4design/for-ui": patch
---

fix: esm が正常にimport できない問題修正
1 change: 1 addition & 0 deletions .ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/CHANGELOG.md
3 changes: 2 additions & 1 deletion packages/for-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"exports": {
".": {
"import": "./dist/esm/for-ui.esm.js",
"require": "./dist/commonjs/for-ui.js"
"require": "./dist/commonjs/for-ui.js",
"types": "./dist/types/index.d.ts"
},
"./tailwind.config.base.js": "./tailwind.config.base.js"
},
Expand Down
1 change: 1 addition & 0 deletions packages/for-ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default defineConfig(({ mode }) => ({
lib: {
entry: path.resolve(__dirname, 'src/index.ts'),
name: 'for-ui',
fileName: (format) => `for-ui${format === 'esm' ? '.esm' : ''}.js`,
},
rollupOptions: {
external: regexesOfPackages,
Expand Down

0 comments on commit 01e42dc

Please # to comment.