Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(web|react): update build target from ES2020 to ES2015 #358

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/shaggy-cups-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@lottiefiles/dotlottie-react': minor
'@lottiefiles/dotlottie-web': minor
---

chore: update build target from ES2020 to ES2015
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"name": "@lottiefiles/dotlottie-web-monorepo",
"license": "MIT",
"private": true,
"workspaces": [
Copy link
Member Author

Choose a reason for hiding this comment

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

no longer needed with pnpm v9

"apps/*",
"packages/*"
],
"scripts": {
"build": "turbo run build",
"changelog": "changeset add",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/tsup.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = defineConfig({
entry: ['./src/index.ts'],
format: ['esm'],
platform: 'browser',
target: ['es2020', 'node18'],
target: ['es2015', 'node18'],
tsconfig: 'tsconfig.build.json',
// To provide an esm build without any external dependencies
noExternal: Object.keys(require('./package.json').dependencies),
Expand Down
2 changes: 1 addition & 1 deletion packages/web/tsup.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = defineConfig({
outDir: './dist',
format: ['esm', 'cjs'],
platform: 'neutral',
target: ['es2020', 'node18'],
target: ['es2015', 'node18'],
tsconfig: 'tsconfig.build.json',
esbuildPlugins: [
// This plugin is used to inline the workers as base64 strings in the output bundle
Expand Down
Loading