From fb6cba8159dec2913b14c0354c4ddcf6db4b4a5f Mon Sep 17 00:00:00 2001 From: nbutmickey Date: Sat, 20 Jan 2024 17:27:23 +0800 Subject: [PATCH] feature: fix bundle support es5 --- rollup.config.js | 2 +- tsconfig.build.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tsconfig.build.json diff --git a/rollup.config.js b/rollup.config.js index db14a6a97e..3c40c3f9da 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -59,7 +59,7 @@ export default defineConfig([ banner }], plugins: [ - typescript() + typescript({tsconfig: 'tsconfig.build.json'}), ] } ]); diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000000..7551a37cc5 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "target": "es5", + }, + } + \ No newline at end of file