fix(cp-frontend): update webpack patch
This commit is contained in:
parent
1eac90c79a
commit
75ec47b234
@ -74,7 +74,7 @@
|
||||
"lodash.isstring": "^4.0.1",
|
||||
"lodash.uniq": "^4.5.0",
|
||||
"lodash.uniqby": "^4.7.0",
|
||||
"prettier": "1.5.3",
|
||||
"prettier": "1.6.0",
|
||||
"quality-docs": "^3.3.0",
|
||||
"read-pkg": "^2.0.0",
|
||||
"redrun": "^5.9.15",
|
||||
|
@ -55,7 +55,8 @@ module.exports = config => {
|
||||
}
|
||||
|
||||
if (Array.isArray(loader.oneOf)) {
|
||||
return Object.assign(loader, {
|
||||
return loaders.concat([
|
||||
Object.assign(loader, {
|
||||
oneOf: loader.oneOf.map(loader => {
|
||||
if (!isString(loader.loader)) {
|
||||
return loader;
|
||||
@ -71,11 +72,12 @@ module.exports = config => {
|
||||
|
||||
return loader;
|
||||
})
|
||||
});
|
||||
})
|
||||
]);
|
||||
}
|
||||
|
||||
if (!isString(loader.loader)) {
|
||||
return loader;
|
||||
return loaders.concat([loader]);
|
||||
}
|
||||
|
||||
if (loader.loader.match(/babel-loader/)) {
|
||||
|
Loading…
Reference in New Issue
Block a user