这个东西需要第二级, babel-preset-stage-2,然后再presets里引入stage-2的设置,再plugins离引入对应的插件

{
"presets": ["es2015", "react", "stage-2", "stage-3"],
"plugins": [
"transform-runtime", 
"transform-strict-mode",
"transform-es2015-modules-commonjs",
"transform-es2015-spread",
"transform-es2015-destructuring",
"transform-es2015-parameters",
"syntax-async-functions",
"transform-async-to-generator",
"syntax-export-extensions",
"transform-es2015-spread"
]
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2018-04-21
  • 2021-05-28
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2019-01-02
相关资源
相似解决方案