Skip to content

Commit

Permalink
Revert "fix: add CommonJS distribution for jest consumers (#2261)"
Browse files Browse the repository at this point in the history
This reverts commit 7fddd42.
  • Loading branch information
kyubisation committed Dec 4, 2023
1 parent 2f63402 commit 000db25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default defineConfig((config) =>
lib: {
// Include all directories containing an index.ts
entry: globIndexMap(packageRoot),
formats: ['es', 'cjs'],
formats: ['es'],
},
minify: false,
outDir: outDir.pathname,
Expand Down
2 changes: 1 addition & 1 deletion src/react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineConfig((config) =>
],
build: {
lib: {
formats: ['es', 'cjs'],
formats: ['es'],
},
minify: false,
outDir: outDir.pathname,
Expand Down
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ export function packageJsonTemplate(
Object.assign(current, {
[`./${next[0].replace(/\/index$/, '')}`]: {
types: `./${next[0]}.d.ts`,
import: `./${next[0]}.js`,
require: `./${next[0]}.cjs`,
esm: `./${next[0]}.js`,
default: `./${next[0]}.js`,
},
}),
Expand Down

0 comments on commit 000db25

Please sign in to comment.