Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion packages/react-devtools-shell/webpack-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,31 @@ const E2E_APP_BUILD_DIR = process.env.REACT_VERSION
const makeConfig = (entry, alias) => ({
mode: __DEV__ ? 'development' : 'production',
devtool: __DEV__ ? 'cheap-source-map' : 'source-map',
stats: 'normal',
stats: {
preset: 'normal',
warningsFilter: [
warning => {
const message = warning.message;
// We use ReactDOM legacy APIs conditionally based on the React version.
// react-native-web also accesses legacy APIs statically but we don't end
// up using them at runtime.
return (
message.startsWith(
`export 'findDOMNode' (imported as 'findDOMNode') was not found in 'react-dom'`,
) ||
message.startsWith(
`export 'hydrate' (reexported as 'hydrate') was not found in 'react-dom'`,
) ||
message.startsWith(
`export 'render' (imported as 'render') was not found in 'react-dom'`,
) ||
message.startsWith(
`export 'unmountComponentAtNode' (imported as 'unmountComponentAtNode') was not found in 'react-dom'`,
)
);
},
],
},
entry,
output: {
publicPath: '/dist/',
Expand Down
Loading