diff --git a/apps/ledger-live-desktop/tools/config/renderer.esbuild.js b/apps/ledger-live-desktop/tools/config/renderer.esbuild.js index 6c1d355ae5f0..5493efad15c6 100644 --- a/apps/ledger-live-desktop/tools/config/renderer.esbuild.js +++ b/apps/ledger-live-desktop/tools/config/renderer.esbuild.js @@ -1,6 +1,6 @@ const path = require("path"); -const fs = require("fs"); -const crypto = require("crypto"); +// const fs = require("fs"); +// const crypto = require("crypto"); const { AliasPlugin, HtmlPlugin, @@ -11,14 +11,14 @@ const { const { DOTENV_FILE } = require("../utils"); const common = require("./common.esbuild"); -const ensureDirectoryExistence = filePath => { +/*const ensureDirectoryExistence = filePath => { const dirname = path.dirname(filePath); if (fs.existsSync(dirname)) { return true; } ensureDirectoryExistence(dirname); fs.mkdirSync(dirname); -}; +};*/ module.exports = { ...common, @@ -29,7 +29,7 @@ module.exports = { target: ["chrome114"], format: "iife", mainFields: ["browser", "module", "main"], - assetNames: "assets/[name]-[hash]", + //assetNames: "assets/[name]-[hash]", external: [...nodeExternals, ...electronRendererExternals], resolveExtensions: process.env.V3 ? [".v3.tsx", ".v3.ts", ".tsx", ".ts", ".js", ".jsx", ".json"] @@ -56,7 +56,7 @@ module.exports = { ], }), DotEnvPlugin(DOTENV_FILE), - { + /*{ name: "assets-plugin", setup(build) { build.onResolve({ filter: /\.(json)$/ }, args => { @@ -81,6 +81,6 @@ module.exports = { return undefined; }); }, - }, + },*/ ], };