babel-plugin-jsx/packages/jsx-explorer/vite.config.ts

18 lines
334 B
TypeScript
Raw Normal View History

2023-06-22 12:14:02 +08:00
import { defineConfig } from 'vite';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
export default defineConfig({
resolve: {
alias: {
'@vue/babel-plugin-jsx': '@vue/babel-plugin-jsx/src/index.ts',
},
},
2023-06-22 12:14:02 +08:00
plugins: [
nodePolyfills({
globals: {
process: true,
},
}),
],
});