babel.config.js 353 B

123456789101112131415
  1. module.exports = {
  2. presets: [
  3. '@vue/app'
  4. ],
  5. plugins: [
  6. 'transform-remove-strict-mode', // 配置插件,这里很重要
  7. '@babel/plugin-proposal-optional-chaining', // 可选链 ?.
  8. '@babel/plugin-proposal-nullish-coalescing-operator' // 空值合并 ??
  9. ],
  10. ignore: [
  11. './public/Voice/*.js',
  12. './src/layout/js/*.js'
  13. ]
  14. }