1.0.14 • Published 6 years ago

wefe-fix-babel v1.0.14

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

ECMAScript 支持 babel-loader

读取编译命令上下文中的 .babelrc 配置,如过没有,使用默认配置

options

  • transformModules: 默认情况下认为 node_modules 目录下的模块导出为 ECMAScript5 语法,因此不使用 babel-loader 加载 node_modules 目录下的模块;可以给 transformModules 传一个模块名数组,来强制使用 babel-loader 加载这些模块。