mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-03 06:03:23 -05:00
chore: clean up unused browser-script deps + config (#61329)
This commit is contained in:
committed by
GitHub
parent
8c484e9619
commit
42a2ca714c
@@ -30,11 +30,9 @@
|
||||
"@babel/preset-env": "7.23.7",
|
||||
"@babel/preset-typescript": "7.23.3",
|
||||
"@types/copy-webpack-plugin": "^8.0.1",
|
||||
"@types/lodash-es": "4.17.12",
|
||||
"@typescript/vfs": "^1.6.0",
|
||||
"babel-loader": "8.3.0",
|
||||
"copy-webpack-plugin": "9.1.0",
|
||||
"lodash-es": "4.17.21",
|
||||
"process": "0.11.10",
|
||||
"pyodide": "^0.23.3",
|
||||
"sass.js": "0.11.1",
|
||||
@@ -44,8 +42,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@freecodecamp/curriculum-helpers": "^5.3.0",
|
||||
"react": "16",
|
||||
"react-dom": "16",
|
||||
"xterm": "^5.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,17 +93,6 @@ module.exports = (env = {}) => {
|
||||
process: require.resolve('process/browser.js')
|
||||
},
|
||||
extensions: ['.js', '.ts']
|
||||
},
|
||||
// To keep the client React version decoupled from the curriculum React
|
||||
// version we use externals to stops Webpack from bundling React and
|
||||
// ReactDOM (they're fetched from the cdn when needed by the client or
|
||||
// curriculum tests). react-dom/server and react-dom/test-utils are included
|
||||
// separately because enzyme-adapter-react-16 imports them directly.
|
||||
externals: {
|
||||
react: 'React',
|
||||
'react-dom': 'ReactDOM',
|
||||
'react-dom/server': 'ReactDOMServer',
|
||||
'react-dom/test-utils': 'ReactTestUtils'
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user