From 2cac42805c09e2c5a5e819bb832591a229e0ed1c Mon Sep 17 00:00:00 2001 From: hemengke <23536175@qq.com> Date: Thu, 16 Nov 2023 11:20:13 +0800 Subject: [PATCH] fix: tmp file os cache --- playground/spa/.browserslistrc | 10 ++++++++++ playground/spa/vite.config.ts | 7 +------ 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 playground/spa/.browserslistrc diff --git a/playground/spa/.browserslistrc b/playground/spa/.browserslistrc new file mode 100644 index 0000000..09284d3 --- /dev/null +++ b/playground/spa/.browserslistrc @@ -0,0 +1,10 @@ +> 0.01% +not dead +last 4 versions +not ie <= 11 +chrome 64 +edge 79 +firefox 67 +opera 51 +safari 11 +defaults diff --git a/playground/spa/vite.config.ts b/playground/spa/vite.config.ts index 46d1e3f..fdde91f 100644 --- a/playground/spa/vite.config.ts +++ b/playground/spa/vite.config.ts @@ -18,12 +18,7 @@ export default defineConfig(() => ({ outputDir: 'out', destination: 'memory', cacheDir: 'node_modules/.vite-plugin-public-typescript', - babel: { - config: { - plugins: ['@babel/plugin-transform-react-constant-elements'], - presets: ['@babel/preset-react'], - }, - }, + babel: true, }), injectScripts((manifest) => [ {