Allow rn-cli.config.js to specify the default transformer, again

Summary:
Restores feature introduced in #7961 after it's been paved partially by #7899

**Test Plan:** ran example in https://github.com/philikon/ReactNativify against a React Native with and without this patch
Closes https://github.com/facebook/react-native/pull/9799

Differential Revision: D3852601

Pulled By: mkonicek

fbshipit-source-id: fc3c80bdb254145fefa870eea1828b4ef33f9297
This commit is contained in:
Philipp von Weitershausen
2016-09-12 15:11:22 -07:00
committed by Facebook Github Bot 0
parent 4ab455b37d
commit 111ed8d180
4 changed files with 8 additions and 6 deletions

View File

@@ -18,8 +18,7 @@ module.exports = [
default: 'ios',
}, {
command: '--transformer [string]',
description: 'Specify a custom transformer to be used (absolute path)',
default: require.resolve('../../packager/transformer'),
description: 'Specify a custom transformer to be used',
}, {
command: '--dev [boolean]',
description: 'If false, warnings are disabled and the bundle is minified',