Skip to content

Commit

Permalink
fix: improve bundle output
Browse files Browse the repository at this point in the history
  • Loading branch information
thebuilder committed Jun 20, 2023
1 parent 00faf77 commit b24d9b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"prebuild": "rm -rf dist lib",
"build": "run-s build:*",
"build:bundle": "tsup src/index.tsx",
"build:legacy": "tsup src/index.tsx --format esm --legacy-output --no-clean",
"build:legacy": "tsup src/index.tsx --format esm --legacy-output --no-clean --no-dts --target es2020",
"build:utils": "tsc -p tsconfig.test.json",
"build:copy": "node scripts/build-copy.js",
"postbuild": "size-limit",
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineConfig({
sourcemap: true,
dts: true,
clean: true,
target: 'es2020',
target: 'esnext',
external: ['react'],
format: ['esm', 'cjs'],
});

0 comments on commit b24d9b2

Please sign in to comment.