chore(play): remove rollup-plugin-esbuild plugin (#19071)

This commit is contained in:
btea 2024-12-03 19:09:13 +08:00 committed by GitHub
parent 88da2215e2
commit 043a22c8f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,6 @@ import Inspect from 'vite-plugin-inspect'
import mkcert from 'vite-plugin-mkcert'
import glob from 'fast-glob'
import VueMacros from 'unplugin-vue-macros/vite'
import esbuild from 'rollup-plugin-esbuild'
import {
epPackage,
epRoot,
@ -16,17 +15,6 @@ import {
pkgRoot,
projRoot,
} from '@element-plus/build-utils'
import type { Plugin } from 'vite'
const esbuildPlugin = (): Plugin => ({
...esbuild({
target: 'chrome64',
loaders: {
'.vue': 'js',
},
}),
enforce: 'post',
})
export default defineConfig(async ({ mode }) => {
const env = loadEnv(mode, process.cwd(), '')
@ -74,7 +62,6 @@ export default defineConfig(async ({ mode }) => {
vueJsx: vueJsx(),
},
}),
esbuildPlugin(),
Components({
include: `${__dirname}/**`,
resolvers: ElementPlusResolver({