Skip to content

Commit

Permalink
Merge pull request #636 from thebuilder/fix/target-es2018
Browse files Browse the repository at this point in the history
  • Loading branch information
thebuilder authored Jun 28, 2023
2 parents a296737 + 4c110ac commit a3f6487
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'],
});

1 comment on commit a3f6487

@vercel
Copy link

@vercel vercel bot commented on a3f6487 Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.