npm i --save--dev @bable/core @bable/cil @bable/preset-env @bable/node // npm i --save @bable/polyfill //项目创建配置文件 bable.config.js const presets = [ [ "@bable/env" , { targets: { edge: ‘17‘, chrom: ‘67‘ } }] ] module.exports = {presets} //npx bable-node index.js
原文地址:https://www.cnblogs.com/-constructor/p/12616736.html
时间: 2024-10-14 06:28:06