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

Merge pull request #233 from Abreto/fix-new-rn

解决 rn 0.57 无法 bundle 的问题
This commit is contained in:
Sunny Luo 2018-12-01 08:39:12 +08:00 committed by GitHub
commit 44c95ed74f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,7 +405,9 @@ export const commands = {
if (major === 0) {
if (minor >= 57) {
// https://github.com/facebook/react-native/commit/a32620dc3b7a0ebd53feeaf7794051705d80f49e#diff-75692fe55c8b1a7c05f4264301342167L101
defaultConfig = Config.load();
// defaultConfig = Config.load();
const { configPromise } = require(path.resolve('node_modules/react-native/local-cli/core'));
defaultConfig = await configPromise;
} else if (minor >= 45) {
defaultConfig = Config.findOptional(path.resolve('.'));
} else if (minor >= 42) {