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)
}

相关文章:

  • 2021-10-17
  • 2021-06-07
  • 2021-10-22
  • 2022-12-23
  • 2021-10-22
  • 2021-08-04
  • 2021-10-18
猜你喜欢
  • 2022-12-23
  • 2021-08-05
  • 2021-12-28
  • 2022-02-05
  • 2021-11-03
  • 2021-07-11
  • 2021-07-18
相关资源
相似解决方案