Skip to content

Commit a3f6487

Browse files
authored
Merge pull request #636 from thebuilder/fix/target-es2018
2 parents a296737 + 4c110ac commit a3f6487

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"prebuild": "rm -rf dist lib",
2929
"build": "run-s build:*",
3030
"build:bundle": "tsup src/index.tsx",
31-
"build:legacy": "tsup src/index.tsx --format esm --legacy-output --no-clean --no-dts --target es2020",
31+
"build:legacy": "tsup src/index.tsx --format esm --legacy-output --no-clean --no-dts",
3232
"build:utils": "tsc -p tsconfig.test.json",
3333
"build:copy": "node scripts/build-copy.js",
3434
"postbuild": "size-limit",

tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default defineConfig({
55
sourcemap: true,
66
dts: true,
77
clean: true,
8-
target: 'esnext',
8+
target: 'es2018',
99
external: ['react'],
1010
format: ['esm', 'cjs'],
1111
});

0 commit comments

Comments
 (0)