basic support for react 15 (#128)

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

View File

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

View File

@ -91,7 +91,7 @@ function reactImport(options) {
if (options.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/addons';