Skip to content

Commit

Permalink
fix(transformer-wx): 移除@babel/plugin-transform-typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Jun 18, 2018
1 parent f26a910 commit 31d5bac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion packages/taro-transformer-wx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"@babel/code-frame": "^7.0.0-beta.44",
"@babel/core": "^7.0.0-beta.42",
"@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.47",
"@babel/plugin-transform-typescript": "^7.0.0-beta.47",
"babel-core": "^6.26.3",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
Expand Down
5 changes: 1 addition & 4 deletions packages/taro-transformer-wx/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ export default function transform<T> (options: Options): TransformResult {
'objectRestSpread',
'decorators'
] as any[]
},
plugins: [
'@babel/plugin-transform-typescript'
]
}
}).code
: options.code
setting.sourceCode = code
Expand Down

0 comments on commit 31d5bac

Please sign in to comment.