mirror of
https://github.com/alex8088/electron-vite.git
synced 2026-09-09 18:04:12 +08:00
Merge upstream master into esm-shim-string-false-import
Keep the ESM shim fix while incorporating the current Vite 8/Oxc plugin comment update.
This commit is contained in:
commit
a3bcbbd4ec
@ -83,8 +83,8 @@ export function swcPlugin(options: SwcOptions = {}): Plugin {
|
||||
return {
|
||||
name: 'vite:swc',
|
||||
config(): UserConfig {
|
||||
// Vite 8 moved default transform to Oxc: only disabling esbuild is ignored
|
||||
// and emits a warning. SWC replaces both paths when this plugin is active.
|
||||
// Vite 8 defaults to Oxc for transform; `esbuild: false` is ignored and
|
||||
// warns. SWC replaces both paths when this plugin is active.
|
||||
// See https://github.com/alex8088/electron-vite/issues/916
|
||||
return {
|
||||
esbuild: false,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user