chore: clean up unused browser-script deps + config (#61329)

This commit is contained in:
Oliver Eyton-Williams
2025-07-15 07:42:06 +02:00
committed by GitHub
parent 8c484e9619
commit 42a2ca714c
3 changed files with 55 additions and 121 deletions

View File

@@ -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'
}
};
};