diff --git a/tsup.config.ts b/tsup.config.ts index d159f25..9672eba 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", + }; + }, }); }