summaryrefslogtreecommitdiffhomepage
path: root/desktop
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-02-17 17:00:18 +0100
committerMarkus Pettersson <markus.pettersson@mullvad.net>2025-02-25 12:50:57 +0100
commitca2fe076e367f58d0e1b759f8931b6e1f6956774 (patch)
tree3f0f495956ef6a3ae54aa049507c2941f7676088 /desktop
parent34d9347e69737ba930904e9ac5d6244cef2cf1a0 (diff)
downloadmullvadvpn-ca2fe076e367f58d0e1b759f8931b6e1f6956774.tar.xz
mullvadvpn-ca2fe076e367f58d0e1b759f8931b6e1f6956774.zip
Add workaround for rollup platform-specific deps not installed
There is a known bug with npm where optional dependencies aren't installed correctly, see: - https://github.com/npm/cli/issues/4828 - https://github.com/rollup/rollup/pull/5267 - https://github.com/vitejs/vite/issues/15120 In order to resolve this we have to explicitly list the optional dependencies in our own package.json for them to be resolved and installed correctly.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/packages/mullvad-vpn/package.json8
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/packages/mullvad-vpn/package.json b/desktop/packages/mullvad-vpn/package.json
index 7cd2401ea8..95d6ce62c0 100644
--- a/desktop/packages/mullvad-vpn/package.json
+++ b/desktop/packages/mullvad-vpn/package.json
@@ -75,6 +75,14 @@
"vite-plugin-electron": "^0.29.0",
"xvfb-maybe": "^0.2.1"
},
+ "optionalDependencies": {
+ "@rollup/rollup-darwin-arm64": "4.34.6",
+ "@rollup/rollup-darwin-x64": "4.34.6",
+ "@rollup/rollup-win32-arm64-msvc": "4.34.6",
+ "@rollup/rollup-win32-x64-msvc": "4.34.6",
+ "@rollup/rollup-linux-arm64-gnu": "4.34.6",
+ "@rollup/rollup-linux-x64-gnu": "4.34.6"
+ },
"scripts": {
"preinstall": "test -d node_modules || mkdir node_modules",
"build": "gulp build",