添加.babelrc{ "presets": [ "es2015" ]}安装插件yarnyarn add babel-preset-es2015npmnpm install babel...