Skip to content

Commit 8bc8419

Browse files
fix(curriculum): use cdnjs instead of unpkg (freeCodeCamp#60286)
1 parent 26b8ddf commit 8bc8419

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

curriculum/challenges/english/25-front-end-development/lab-color-picker/67bf4350777ac6ffdc027745.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ async () => {
170170
<meta charset="UTF-8" />
171171
<title>Color Picker</title>
172172
<link rel="stylesheet" href="styles.css" />
173-
<script src="https://unpkg.com/react@18/umd/react.development.js"></script>
174-
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
175-
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
173+
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.3.1/umd/react.development.min.js"></script>
174+
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.3.1/umd/react-dom.development.min.js"></script>
175+
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/7.26.5/babel.min.js"></script>
176176
<script
177177
data-plugins="transform-modules-umd"
178178
type="text/babel"

tools/client-plugins/browser-scripts/webpack.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ module.exports = (env = {}) => {
9292
},
9393
// To keep the client React version decoupled from the curriculum React
9494
// version we use externals to stops Webpack from bundling React and
95-
// ReactDOM (they're fetched from unpkg when needed by the client or
95+
// ReactDOM (they're fetched from the cdn when needed by the client or
9696
// curriculum tests). react-dom/server and react-dom/test-utils are included
9797
// separately because enzyme-adapter-react-16 imports them directly.
9898
externals: {

0 commit comments

Comments
 (0)