File: set-system-path.patch

package info (click to toggle)
node-d3 5.16.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,720 kB
  • sloc: javascript: 591; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: Set system path
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -23,7 +23,12 @@
   {
     input: "index.js",
     plugins: [
-      node(),
+    node({
+        customResolveOptions: {
+            moduleDirectory: ['/usr/share/nodejs', '/usr/lib/nodejs'],
+            preferBuiltins: false
+          }
+    }),
       ascii()
     ],
     output: {
@@ -39,7 +44,12 @@
   {
     input: "index.js",
     plugins: [
-      node(),
+      node({
+        customResolveOptions: {
+            moduleDirectory: ['/usr/share/nodejs', '/usr/lib/nodejs'],
+            preferBuiltins: false
+          }
+    }),
       ascii(),
       terser({output: {preamble: copyright}})
     ],