mirror of
https://github.com/alex8088/electron-vite.git
synced 2026-11-02 14:51:51 +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 {
|
return {
|
||||||
name: 'vite:swc',
|
name: 'vite:swc',
|
||||||
config(): UserConfig {
|
config(): UserConfig {
|
||||||
// Vite 8 moved default transform to Oxc: only disabling esbuild is ignored
|
// Vite 8 defaults to Oxc for transform; `esbuild: false` is ignored and
|
||||||
// and emits a warning. SWC replaces both paths when this plugin is active.
|
// warns. SWC replaces both paths when this plugin is active.
|
||||||
// See https://github.com/alex8088/electron-vite/issues/916
|
// See https://github.com/alex8088/electron-vite/issues/916
|
||||||
return {
|
return {
|
||||||
esbuild: false,
|
esbuild: false,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user