File: 05-is-webpack-bundle.diff

package info (click to toggle)
node-yarnpkg 1.13.0-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 93,036 kB
  • sloc: sh: 323; makefile: 19
file content (15 lines) | stat: -rw-r--r-- 525 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Patch away one-liner module is-webpack-bundle
Forwarded: not-needed
Author: Paolo Greppi <paolo.greppi@libpf.com>

--- a/src/constants.js
+++ b/src/constants.js
@@ -4,7 +4,7 @@
 const path = require('path');
 const userHome = require('./util/user-home-dir').default;
 const {getCacheDir, getConfigDir, getDataDir} = require('./util/user-dirs');
-const isWebpackBundle = require('is-webpack-bundle');
+const isWebpackBundle = typeof __webpack_require__ !== "undefined";
 
 type Env = {
   [key: string]: ?string,