Skip to content

Commit

Permalink
fix(cli): 2.0.0-beta.8. 编译RN报错 'babel' of undefined close #5093
Browse files Browse the repository at this point in the history
  • Loading branch information
Pines-Cheng authored and luckyadam committed Dec 26, 2019
1 parent 60e76e0 commit 04ca457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-cli/src/rn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Compiler {
plugins: ICommonPlugin[]
rnConfig
hasJDReactOutput: boolean
babelConfig: any
// babelConfig: any
// pxTransformConfig
// pathAlias

Expand All @@ -74,7 +74,7 @@ class Compiler {
this.stylus = this.projectConfig.stylus
this.less = this.projectConfig.less
this.rnConfig = this.projectConfig.rn || {}
this.babelConfig = this.projectConfig.plugins.babel // 用来配置 babel
// this.babelConfig = this.projectConfig.plugins.babel // 用来配置 babel

// 直接输出编译后代码到指定目录
if (this.rnConfig.outPath) {
Expand Down

0 comments on commit 04ca457

Please sign in to comment.