Skip to content

Commit 8183381

Browse files
committed
fix(playground): define env
1 parent 0d484d2 commit 8183381

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

playground/vite.config.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import Unocss from 'unocss/vite'
88
const resolve = (...paths: string[]) => path.resolve(__dirname, 'src', ...paths)
99

1010
export default defineConfig({
11+
define: {
12+
'process.env.BABEL_TYPES_8_BREAKING': 'false',
13+
},
1114
plugins: [
1215
Vue({
1316
reactivityTransform: true,
@@ -24,11 +27,4 @@ export default defineConfig({
2427
}),
2528
Unocss(),
2629
],
27-
optimizeDeps: {
28-
esbuildOptions: {
29-
define: {
30-
'process.env.BABEL_TYPES_8_BREAKING': 'false',
31-
},
32-
},
33-
},
3430
})

0 commit comments

Comments
 (0)