1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00

support react 14

This commit is contained in:
ido 2015-10-25 16:31:29 +02:00
parent 2a8ee0a49a
commit 0a4bf6a18b
2 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@ var ver0_10_0 = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b
var versions = {
'0.14.0': ver0_12_0,
'0.13.1': ver0_12_0,
'0.12.2': ver0_12_0,
'0.12.1': ver0_12_0,
@ -21,4 +22,4 @@ var versions = {
default: '0.13.1'
};
module.exports = versions;
module.exports = versions;

View File

@ -60,7 +60,7 @@ function getOptions(options) {
force: false,
format: 'stylish',
targetVersion: reactDOMSupport.default,
reactImportPath: options.native ? 'react-native' : 'react/addons',
reactImportPath: options.native ? 'react-native' : (options.targetVersion === '0.14.0' ? 'react' : 'react/addons'),
lodashImportPath: 'lodash',
native: false,
nativeTargetVersion: reactNativeSupport.default,