From 39d27f28f10174c525127a1a893f43e1f81904f7 Mon Sep 17 00:00:00 2001 From: Herman Lederer Date: Mon, 4 Apr 2022 16:09:47 +0200 Subject: [PATCH] Add virtual module to rollup excludes --- src/plugin/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugin/index.ts b/src/plugin/index.ts index 061aed8..6e4099a 100644 --- a/src/plugin/index.ts +++ b/src/plugin/index.ts @@ -23,6 +23,11 @@ function VitePluginFs(userOptiuons: UserOptions = {}): Plugin { } return { + build: { + rollupOptions: { + external: 'virtual:fs', + }, + }, optimizeDeps: { exclude: [virtualModuleId], },