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

basic support for react 15 ()

This commit is contained in:
Brian Vella 2016-05-15 15:44:28 +02:00 committed by Omer Ganim
parent c495a02452
commit 68b088fe2e
2 changed files with 3 additions and 1 deletions

@ -9,6 +9,8 @@ const svg = ['a', 'altGlyph', 'altGlyphDef', 'altGlyphItem', 'animate', 'animate
const v12_svg = ver0_12_0.concat(svg); const v12_svg = ver0_12_0.concat(svg);
const versions = { const versions = {
'15.0.1': v12_svg,
'15.0.0': v12_svg,
'0.14.0': v12_svg, '0.14.0': v12_svg,
'0.13.1': v12_svg, '0.13.1': v12_svg,
'0.12.2': v12_svg, '0.12.2': v12_svg,

@ -91,7 +91,7 @@ function reactImport(options) {
if (options.native) { if (options.native) {
return 'react-native'; return 'react-native';
} }
if (options.targetVersion === '0.14.0' || options.targetVersion === '0.15.0') { if (options.targetVersion === '0.14.0' || options.targetVersion === '0.15.0' || options.targetVersion === '15.0.0' || options.targetVersion === '15.0.1') {
return 'react'; return 'react';
} }
return 'react/addons'; return 'react/addons';