fix: workaround vite treating npm: as built-ins (#3205)
Upstream fix: https://github.com/vitejs/vite/pull/20558
This commit is contained in:
@@ -12,7 +12,7 @@ import { devServer } from "./plugins/dev_server.ts";
|
||||
import { buildIdPlugin } from "./plugins/build_id.ts";
|
||||
import { clientSnapshot } from "./plugins/client_snapshot.ts";
|
||||
import { serverSnapshot } from "./plugins/server_snapshot.ts";
|
||||
import { commonjs } from "./plugins/commonjs.ts";
|
||||
import { patches } from "./plugins/patches.ts";
|
||||
|
||||
export function fresh(config?: FreshViteConfig): Plugin[] {
|
||||
const fConfig: ResolvedFreshViteConfig = {
|
||||
@@ -109,7 +109,7 @@ export function fresh(config?: FreshViteConfig): Plugin[] {
|
||||
fConfig.routeDir = pathWithRoot(fConfig.routeDir, config.root);
|
||||
},
|
||||
},
|
||||
commonjs(),
|
||||
patches(),
|
||||
serverEntryPlugin(fConfig),
|
||||
...serverSnapshot(fConfig),
|
||||
clientEntryPlugin(),
|
||||
|
||||
Reference in New Issue
Block a user