From 69bce71e4bb548664b6ee3aba3f68fc7af1cfd62 Mon Sep 17 00:00:00 2001 From: cain-wang Date: Fri, 16 Apr 2021 12:36:05 -0700 Subject: [PATCH] Fix broken image import in bundled build. The line I removed set resolveProxyImports to false for bundled builds and cause image and json files to be imported directly instead of through proxy imports. This change fixes: [BUG] sowpack bundle build generate import statement for images and json files #3109 https://github.com/snowpackjs/snowpack/issues/3109 --- snowpack/src/build/process.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/snowpack/src/build/process.ts b/snowpack/src/build/process.ts index cb7c7e9124..f86450c560 100644 --- a/snowpack/src/build/process.ts +++ b/snowpack/src/build/process.ts @@ -110,8 +110,6 @@ export async function createBuildState(commandOptions: CommandOptions): Promise< const isSSR = !!config.buildOptions.ssr; const isHMR = getIsHmrEnabled(config); - // Seems like maybe we shouldn't be doing this... - config.buildOptions.resolveProxyImports = !config.optimize?.bundle; config.devOptions.hmrPort = isHMR ? config.devOptions.hmrPort : undefined; config.devOptions.port = 0;