MDL-87765 core: Fix react import
This commit is contained in:
committed by
Adrian Greeve
parent
5c94f4c2bf
commit
21f4760b33
File diff suppressed because it is too large
Load Diff
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user