Package: node-rollup / 2.38.4-1

search-module-in-debian-dirs.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: search module also in Debian directories
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2021-01-29

--- a/rollup.config.js
+++ b/rollup.config.js
@@ -59,9 +59,13 @@
 	tryCatchDeoptimization: false
 };
 
+const resOpt = {
+  moduleDirectories: ['./node_modules','/usr/lib/nodejs','/usr/share/nodejs','debian/build_modules']
+};
+
 const nodePlugins = [
 	alias(moduleAliases),
-	resolve(),
+	resolve(resOpt),
 	json(),
 	string({ include: '**/*.md' }),
 	commonjs({ include: 'node_modules/**' }),