refactor(jsx-explorer): replace @babel/core with @babel/standalone

This commit is contained in:
三咲智子 Kevin Deng
2024-09-07 05:04:05 +08:00
parent 455ae7182d
commit 4bd09577cc
4 changed files with 31 additions and 26 deletions

View File

@ -9,7 +9,6 @@ export default defineConfig({
resolve: {
alias: {
'@vue/babel-plugin-jsx': '@vue/babel-plugin-jsx/src/index.ts',
path: 'pathe',
},
},
plugins: [
@ -17,10 +16,6 @@ export default defineConfig({
Replace({
values: {
'process.env.BABEL_TYPES_8_BREAKING': 'false',
'process.env.BABEL_ENV': '"development"',
'process.env.NODE_NDEBUG': 'true',
'process.env.NODE_DEBUG': 'false',
'Buffer.isBuffer': 'function isBuffer() { return false; }',
},
}),
],