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,