aboutsummaryrefslogtreecommitdiff
path: root/games/anki/files/patch-package.json
blob: ce2d9fce1fe1e8b7cadc789aefbbc99a7ff80687 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Use the WASM build to prevent the following error during build:

Error: Your current platform "freebsd" and architecture "x64" combination is not yet supported by the native Rollup build. Please use the WASM build "@rollup/wasm-node" instead.

The following platform-architecture combinations are supported:
[...]

If this is important to you, please consider supporting Rollup to make a native build for your platform and architecture available.
    at Object.<anonymous> (/wrkdirs/usr/ports/games/anki/work/anki-24.06.2/out/node_modules/rollup/dist/native.js:38:8)
    [...]

--- package.json.orig	2024-04-13 08:02:54 UTC
+++ package.json
@@ -78,7 +78,8 @@
         "hammerjs": "^2.0.8"
     },
     "resolutions": {
-        "canvas": "npm:empty-npm-package"
+        "canvas": "npm:empty-npm-package",
+        "rollup": "npm:@rollup/wasm-node"
     },
     "browserslist": [
         "defaults",