Skip to content

Commit

Permalink
fix: lower build target (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio authored Aug 22, 2023
1 parent bb39a60 commit e6a0c23
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/bright-bees-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@headstartwp/core": patch
"@headstartwp/next": patch
---

Lower compilation target
2 changes: 2 additions & 0 deletions packages/core/tsconfig-cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/cjs",
"module": "commonjs",
"target": "ES2017"
},
"exclude": ["node_modules", "dist", "*/**/__tests__"],
"include": ["src", "emotion.d.ts"]
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "dist/mjs",
"module": "esnext",
"target": "esnext",
"target": "ES2017"
},
"exclude": ["node_modules", "dist", "*/**/__tests__"],
"include": ["src"]
Expand Down
4 changes: 3 additions & 1 deletion packages/next/tsconfig-cjs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/cjs"
"outDir": "dist/cjs",
"module": "commonjs",
"target": "ES2017"
},
"exclude": ["node_modules", "dist", "*/**/__tests__"],
"include": ["src"]
Expand Down
2 changes: 1 addition & 1 deletion packages/next/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "dist/mjs",
"module": "esnext",
"target": "esnext"
"target": "ES2017"
},
"exclude": ["node_modules", "dist", "*/**/__tests__"],
"include": ["src"]
Expand Down

1 comment on commit e6a0c23

@vercel
Copy link

@vercel vercel bot commented on e6a0c23 Aug 22, 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.