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,
|