File: dont-fail-on-warn.diff

package info (click to toggle)
node-rollup 3.15.0-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 51,264 kB
  • sloc: javascript: 108,994; sh: 26; makefile: 18
file content (15 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: workaround "'this' keyword is equivalent to 'undefined'" failure
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2021-12-15

--- a/rollup.config.ts
+++ b/rollup.config.ts
@@ -22,6 +22,7 @@
 };
 
 const onwarn: WarningHandlerWithDefault = warning => {
+	if (warning.code === 'THIS_IS_UNDEFINED') return;
 	// eslint-disable-next-line no-console
 	console.error(
 		'Building Rollup produced warnings that need to be resolved. ' +