@umijs/deps
Advanced tools
Comparing version 0.2.26 to 0.2.27
@@ -5,2 +5,10 @@ exports.__esModule = true; | ||
function assignWithGetter(source, webpack) { | ||
Object.keys(webpack).forEach(key => { | ||
Object.defineProperty(source, key, { | ||
get() { return webpack[key]; } | ||
}); | ||
}); | ||
} | ||
let initializedWebpack5 = false; | ||
@@ -12,3 +20,4 @@ let initializedWebpack4 = false; | ||
Object.assign(exports, require('./5/bundle5')()); | ||
Object.assign(exports, require('./5/bundle5')().webpack); | ||
// Object.assign(exports, require('./5/bundle5')().webpack); | ||
assignWithGetter(exports, require('./5/bundle5')().webpack); | ||
exports.isWebpack5 = true; | ||
@@ -20,3 +29,4 @@ exports.default = require('./5/bundle5')().webpack; | ||
Object.assign(exports, require('./4/bundle4')()); | ||
Object.assign(exports, require('./4/bundle4')().webpack); | ||
// Object.assign(exports, require('./4/bundle4')().webpack); | ||
assignWithGetter(exports, require('./4/bundle4')().webpack); | ||
exports.isWebpack5 = false; | ||
@@ -23,0 +33,0 @@ exports.default = require('./4/bundle4')().webpack; |
{ | ||
"name": "@umijs/deps", | ||
"version": "0.2.26", | ||
"version": "0.2.27", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32087630
112470