mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-15 08:19:16 +08:00
18 lines
334 B
TypeScript
18 lines
334 B
TypeScript
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',
|
|
},
|
|
},
|
|
plugins: [
|
|
nodePolyfills({
|
|
globals: {
|
|
process: true,
|
|
},
|
|
}),
|
|
],
|
|
});
|