MDL-87765 core: Fix react import

This commit is contained in:
Andrew Nicols
2026-03-11 12:55:34 +08:00
committed by Adrian Greeve
parent 5c94f4c2bf
commit 21f4760b33
2 changed files with 1293 additions and 7 deletions
File diff suppressed because it is too large Load Diff
+2 -3
View File
@@ -45,15 +45,14 @@ const REACT_DOM_VERSION = getPackageVersion('react-dom');
const bundles = [
{ packageName: "react", version: REACT_VERSION, fileName: "react" },
{ packageName: "react", version: REACT_VERSION, fileName: "jsx-runtime" },
{ packageName: "react", version: REACT_VERSION, fileName: "jsx-dev-runtime" },
{ packageName: "react", version: REACT_VERSION, fileName: "jsx-dev-runtime", dev: true },
{ packageName: "react-dom", version: REACT_DOM_VERSION, fileName: "react-dom" },
{ packageName: "react-dom", version: REACT_DOM_VERSION, fileName: "client" },
].map((bundle) => ({
...bundle,
url: `https://esm.sh/${bundle.packageName}@${bundle.version}/${TARGET}/${bundle.fileName}.bundle.mjs`
url: `https://esm.sh/${bundle.packageName}@${bundle.version}/${TARGET}/${bundle.fileName}${bundle.dev ? '.development' : ''}.bundle.mjs`
}));
/**
* Update the react and react-dom bundles by downloading them from esm.sh and saving them in the lib folder.
* Also updates the version in thirdpartylibs.xml.