1.[BABEL] Note: The code generator has deoptimised the styling of "unknown" as it exceeds the max of "
[BABEL] Note: The code generator has deoptimised the styling of "unknown" as it exceeds the max of "500KB".
.babelrc文件添加 "compact": false
cd /do1cloud/kibana-6.5.4-linux-x86_64/node_modules/polished/
[root@wlt-overseas-ELK polished]# cat ./.babelrc.js
const { BABEL_ENV, NODE_ENV } = process.env
const cjs = BABEL_ENV === 'cjs' || NODE_ENV === 'test'
"compact": false
module.exports = {
presets: [
['env', {
modules: false,
loose: true,
exclude: ['transform-es2015-typeof-symbol'],
}]
],
plugins: [
cjs && 'add-module-exports',
cjs && 'transform-es2015-modules-commonjs',
'transform-object-rest-spread',
'transform-flow-strip-types',
'syntax-trailing-function-commas',
'annotate-pure-calls'
].filter(Boolean)
}