diff --git a/src/lib/build/fsPlugin.ts b/src/lib/build/fsPlugin.ts index 7d35b0eb..cb53dd4e 100644 --- a/src/lib/build/fsPlugin.ts +++ b/src/lib/build/fsPlugin.ts @@ -8,6 +8,13 @@ export function fsPlugin(fs: JSRuntimeFS, cwd: string): Plugin { name: "fs", setup(build) { + build.onResolve({ filter: /^data:/ }, (args) => { + return { + path: args.path, + external: true, + }; + }); + build.onResolve({ filter: /.*/ }, async (args) => { let resolved: string;