Merge pull request #218 from haipengz/master
update metro path of bundle.js to make it compatible with react native@0.56+
This commit is contained in:
commit
c8a63d8a4b
@ -371,7 +371,9 @@ export const commands = {
|
|||||||
|
|
||||||
// ref: https://github.com/ds300/react-native-typescript-transformer/blob/master/index.js#L20
|
// ref: https://github.com/ds300/react-native-typescript-transformer/blob/master/index.js#L20
|
||||||
if (major === 0) {
|
if (major === 0) {
|
||||||
if (minor >= 52) {
|
if (minor >= 56) {
|
||||||
|
require('metro-babel-register');
|
||||||
|
} else if (minor >= 52) {
|
||||||
require('metro/src/babelRegisterOnly');
|
require('metro/src/babelRegisterOnly');
|
||||||
} else if (minor >= 47) {
|
} else if (minor >= 47) {
|
||||||
require('metro-bundler/src/babelRegisterOnly');
|
require('metro-bundler/src/babelRegisterOnly');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user