mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add exception for 16.alpha when loading React in DOM Fixtures (#11200)
The file structure was updated in 16. This wasn't the case for alphas. We need to load the old module location for anything less than 16 RC.
This commit is contained in:
Vendored
+3
-1
@@ -42,7 +42,9 @@ export default function loadReact() {
|
||||
let version = query.version || 'local';
|
||||
|
||||
if (version !== 'local') {
|
||||
if (parseInt(version, 10) >= 16) {
|
||||
// The file structure was updated in 16. This wasn't the case for alphas.
|
||||
// Load the old module location for anything less than 16 RC
|
||||
if (parseInt(version, 10) >= 16 && version.indexOf('alpha') < 0) {
|
||||
REACT_PATH =
|
||||
'https://unpkg.com/react@' + version + '/umd/react.development.js';
|
||||
DOM_PATH =
|
||||
|
||||
Reference in New Issue
Block a user