Skip to content

Commit 450d742

Browse files
committed
fix: support es2015
closes #650
1 parent 51227ad commit 450d742

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/babel-plugin-jsx/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ export default defineConfig({
44
entry: ['src/index.ts'],
55
format: ['cjs', 'esm'],
66
dts: true,
7+
target: 'es2015',
78
platform: 'neutral',
89
});

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sourceMap": true,
44
"target": "ESNext",
55
"module": "ESNext",
6-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
6+
"lib": ["ES2015", "DOM", "DOM.Iterable"],
77
"moduleResolution": "node",
88
"allowJs": true,
99
"strict": true,

0 commit comments

Comments
 (0)