1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

bundle compatible with react native@0.56+

This commit is contained in:
郑海鹏 2018-08-13 10:22:10 +08:00
parent 43d062d288
commit beeb81cece

View File

@ -371,7 +371,9 @@ export const commands = {
// ref: https://github.com/ds300/react-native-typescript-transformer/blob/master/index.js#L20
if (major === 0) {
if (minor >= 52) {
if (minor >= 56) {
require('metro/src/reactNativeTransformer');
} else if (minor >= 52) {
require('metro/src/babelRegisterOnly');
} else if (minor >= 47) {
require('metro-bundler/src/babelRegisterOnly');