From 19043236be9aeab8298eba1dc2e6bd4703ffff51 Mon Sep 17 00:00:00 2001 From: Nathan Hunzaker Date: Thu, 12 Oct 2017 17:30:03 -0400 Subject: [PATCH] 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. --- fixtures/dom/src/react-loader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fixtures/dom/src/react-loader.js b/fixtures/dom/src/react-loader.js index 89c8e23970..6d108b0c28 100644 --- a/fixtures/dom/src/react-loader.js +++ b/fixtures/dom/src/react-loader.js @@ -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 =