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 = () => {
|
||||
return isEnvProduction
|
||||
? [/oak-general-business/]
|
||||
? [/oak-general-business/, /oak-frontend-base/]
|
||||
: [
|
||||
/oak-domain/,
|
||||
/oak-external-sdk/,
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@ module.exports = function (webpackEnv) {
|
|||
|
||||
const getOakInclude = () => {
|
||||
return isEnvProduction
|
||||
? [/oak-general-business/]
|
||||
? [/oak-general-business/, /oak-frontend-base/]
|
||||
: [
|
||||
/oak-domain/,
|
||||
/oak-external-sdk/,
|
||||
|
|
@ -507,6 +507,12 @@ module.exports = function (webpackEnv) {
|
|||
// See #6846 for context on why cacheCompression is disabled
|
||||
cacheCompression: false,
|
||||
compact: isEnvProduction,
|
||||
overrides: [
|
||||
{
|
||||
include: /oak-frontend-base/,
|
||||
sourceType: 'unambiguous',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue