From 1d46284a0192a8690bd777c73ccb2f2a53dd6332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Tue, 16 Dec 2025 10:36:25 +0100 Subject: [PATCH] Added open and all its transitive dependencies to the webpack allowlist so they get bundled instead of being marked as external (which caused pnpm symlink issues with pkg) --- apps/cli/webpack.base.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/apps/cli/webpack.base.js b/apps/cli/webpack.base.js index 532b0a747a0..a6db09fa897 100644 --- a/apps/cli/webpack.base.js +++ b/apps/cli/webpack.base.js @@ -108,7 +108,22 @@ module.exports.buildConfig = function buildConfig(params) { externals: [ nodeExternals({ modulesDir: params.externalsModulesDir, - allowlist: [/@bitwarden/], + allowlist: [ + /@bitwarden/, + // Bundle 'open' and its dependencies to avoid pnpm symlink issues with pkg + /^open$/, + /^wsl-utils$/, + /^powershell-utils$/, + /^define-lazy-prop$/, + /^default-browser$/, + /^default-browser-id$/, + /^bundle-name$/, + /^run-applescript$/, + /^is-inside-container$/, + /^is-in-ssh$/, + /^is-docker$/, + /^is-wsl$/, + ], }), ], experiments: {