diff --git a/tsup.config.ts b/tsup.config.ts index d159f256e18f..9672ebadb376 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -81,6 +81,13 @@ export default defineConfig(async (options) => { target: BROWSER_TARGET, platform: "browser", external: globalManagerPackages, + esbuildOptions(options) { + options.conditions = ["module"]; + options.loader = { + ...options.loader, + ".png": "dataurl", + }; + }, }); }