We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a296737 + 4c110ac commit a3f6487Copy full SHA for a3f6487
package.json
@@ -28,7 +28,7 @@
28
"prebuild": "rm -rf dist lib",
29
"build": "run-s build:*",
30
"build:bundle": "tsup src/index.tsx",
31
- "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",
32
"build:utils": "tsc -p tsconfig.test.json",
33
"build:copy": "node scripts/build-copy.js",
34
"postbuild": "size-limit",
tsup.config.ts
@@ -5,7 +5,7 @@ export default defineConfig({
5
sourcemap: true,
6
dts: true,
7
clean: true,
8
- target: 'esnext',
+ target: 'es2018',
9
external: ['react'],
10
format: ['esm', 'cjs'],
11
});
0 commit comments