Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Add esbuild options for handling PNG files
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Jan 26, 2024
1 parent 1c18b81 commit 6cf3e64
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};
},
});
}

Expand Down

0 comments on commit 6cf3e64

Please sign in to comment.