fix: support es2015

closes #650
This commit is contained in:
三咲智子 Kevin Deng 2023-06-26 15:53:57 +08:00
parent 51227ade98
commit 450d742287
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
2 changed files with 2 additions and 1 deletions

View File

@ -4,5 +4,6 @@ export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
dts: true,
target: 'es2015',
platform: 'neutral',
});

View File

@ -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,