oak-frontend-base 对外输出的是 CommonJS 类型源码,使用sourceType:unambiguous
This commit is contained in:
parent
9e02005c89
commit
0b69a6ff3a
|
|
@ -91,7 +91,7 @@ module.exports = function (webpackEnv) {
|
||||||
|
|
||||||
const getOakInclude = () => {
|
const getOakInclude = () => {
|
||||||
return isEnvProduction
|
return isEnvProduction
|
||||||
? [/oak-general-business/]
|
? [/oak-general-business/, /oak-frontend-base/]
|
||||||
: [
|
: [
|
||||||
/oak-domain/,
|
/oak-domain/,
|
||||||
/oak-external-sdk/,
|
/oak-external-sdk/,
|
||||||
|
|
|
||||||
|
|
@ -206,7 +206,7 @@ module.exports = function (webpackEnv) {
|
||||||
|
|
||||||
const getOakInclude = () => {
|
const getOakInclude = () => {
|
||||||
return isEnvProduction
|
return isEnvProduction
|
||||||
? [/oak-general-business/]
|
? [/oak-general-business/, /oak-frontend-base/]
|
||||||
: [
|
: [
|
||||||
/oak-domain/,
|
/oak-domain/,
|
||||||
/oak-external-sdk/,
|
/oak-external-sdk/,
|
||||||
|
|
@ -507,6 +507,12 @@ module.exports = function (webpackEnv) {
|
||||||
// See #6846 for context on why cacheCompression is disabled
|
// See #6846 for context on why cacheCompression is disabled
|
||||||
cacheCompression: false,
|
cacheCompression: false,
|
||||||
compact: isEnvProduction,
|
compact: isEnvProduction,
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
include: /oak-frontend-base/,
|
||||||
|
sourceType: 'unambiguous',
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue