Skip to content

Commit

Permalink
fix: unpkg.zhimg.com can't open
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Mar 28, 2024
1 parent fb12e71 commit 6d6655f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/download-react.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ const pluginTitle = `${author}/${name}`;

const version = '18';
const [reactDev, reactDomDev, react, reactDom] = await Promise.all([
fetch(`https://unpkg.zhimg.com/react@${version}/umd/react.development.js`).then((r) => r.text()),
fetch(`https://unpkg.zhimg.com/react-dom@${version}/umd/react-dom.development.js`).then((r) => r.text()),
fetch(`https://unpkg.zhimg.com/react@${version}/umd/react.production.min.js`).then((r) => r.text()),
fetch(`https://unpkg.zhimg.com/react-dom@${version}/umd/react-dom.production.min.js`).then((r) => r.text()),
fetch(`https://unpkg.com/react@${version}/umd/react.development.js`).then((r) => r.text()),
fetch(`https://unpkg.com/react-dom@${version}/umd/react-dom.development.js`).then((r) => r.text()),
fetch(`https://unpkg.com/react@${version}/umd/react.production.min.js`).then((r) => r.text()),
fetch(`https://unpkg.com/react-dom@${version}/umd/react-dom.production.min.js`).then((r) => r.text()),
]);

const distDir = path.join(__dirname, '..', 'dist');
Expand Down

0 comments on commit 6d6655f

Please sign in to comment.