1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 14:04:03 +00:00

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)
This commit is contained in:
Anders Åberg
2025-12-16 10:36:25 +01:00
parent 70ed46c454
commit 1d46284a01

View File

@@ -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: {