File: load-plugins-from-system-libraries.diff

package info (click to toggle)
node-babel7 7.20.15%2Bds1%2B~cs214.269.168-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 135,684 kB
  • sloc: javascript: 162,146; sh: 364; makefile: 306
file content (17 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: add Debian paths to find babel plugins
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-02-01

--- a/packages/babel-core/src/config/files/plugins.ts
+++ b/packages/babel-core/src/config/files/plugins.ts
@@ -153,6 +153,9 @@
   while (!res.done) {
     res = it.next(tryRequireResolve(res.value, { paths: [dirname] }));
   }
+  while (!res.done) {
+    res = it.next(tryRequireResolve(res.value, { paths: ['/usr/share/nodejs'] }));
+  }
   return res.value;
 }
 async function resolveStandardizedNameForImport(