Skip to content

Commit

Permalink
fix: update esbuild conf
Browse files Browse the repository at this point in the history
  • Loading branch information
KVNLS committed Oct 13, 2023
1 parent b0d0357 commit 1e57814
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions apps/ledger-live-desktop/tools/config/common.esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = {
nodePaths: ["node_modules", path.resolve(rootFolder, "node_modules")],
sourcemap: true,
minify: true,
treeShaking: true,
color: true,
metafile: true,
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion apps/ledger-live-desktop/tools/config/main.esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
...common,
entryPoints: ["./src/index.ts"],
entryNames: "main.bundle",
target: ["node12"],
target: ["node18"],
platform: "node",
format: "cjs",
// Some modules have different exports signatures depending on the main field. (for instance bignumber.js)
Expand Down
2 changes: 1 addition & 1 deletion apps/ledger-live-desktop/tools/config/preloader.esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = {
entryNames: "preloader.bundle",
platform: "node",
format: "cjs",
target: ["chrome91"],
target: ["chrome114"],
external: [...electronPreloaderExternals],
};
3 changes: 2 additions & 1 deletion apps/ledger-live-desktop/tools/config/renderer.esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ module.exports = {
...common,
entryPoints: ["src/renderer/index.ts"],
entryNames: "renderer.bundle",
jsx: "automatic",
platform: "browser",
target: ["chrome91"],
target: ["chrome114"],
format: "iife",
mainFields: ["browser", "module", "main"],
external: [...nodeExternals, ...electronRendererExternals],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = {
entryNames: "webviewPreloader.bundle",
platform: "node",
format: "cjs",
target: ["chrome91"],
target: ["chrome114"],
external: [...electronPreloaderExternals],
};

0 comments on commit 1e57814

Please sign in to comment.