Skip to content

Commit

Permalink
fix: target es2018
Browse files Browse the repository at this point in the history
  • Loading branch information
thebuilder committed Jun 28, 2023
1 parent a296737 commit 4c110ac
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 --no-dts --target es2020",
"build:legacy": "tsup src/index.tsx --format esm --legacy-output --no-clean --no-dts",
"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: 'esnext',
target: 'es2018',
external: ['react'],
format: ['esm', 'cjs'],
});

0 comments on commit 4c110ac

Please sign in to comment.