From 450d74228779b61ae66fd10584fa88f894727939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Mon, 26 Jun 2023 15:53:57 +0800 Subject: [PATCH] fix: support es2015 closes #650 --- packages/babel-plugin-jsx/tsup.config.ts | 1 + tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/babel-plugin-jsx/tsup.config.ts b/packages/babel-plugin-jsx/tsup.config.ts index bb3a0e58..8a259082 100644 --- a/packages/babel-plugin-jsx/tsup.config.ts +++ b/packages/babel-plugin-jsx/tsup.config.ts @@ -4,5 +4,6 @@ export default defineConfig({ entry: ['src/index.ts'], format: ['cjs', 'esm'], dts: true, + target: 'es2015', platform: 'neutral', }); diff --git a/tsconfig.json b/tsconfig.json index 87b9ca36..89b14231 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "sourceMap": true, "target": "ESNext", "module": "ESNext", - "lib": ["ES2022", "DOM", "DOM.Iterable"], + "lib": ["ES2015", "DOM", "DOM.Iterable"], "moduleResolution": "node", "allowJs": true, "strict": true,