Skip to content

Commit

Permalink
Revert changes to react-devtools-inline Webpack config from PR #22760 (
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn authored Dec 15, 2021
1 parent 3f45b68 commit b10c378
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions packages/react-devtools-inline/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ const babelOptions = {
),
};

const builtModulesDir = resolve(
__dirname,
'..',
'..',
'build',
'oss-experimental',
);

module.exports = {
mode: __DEV__ ? 'development' : 'production',
devtool: __DEV__ ? 'eval-cheap-source-map' : 'source-map',
Expand All @@ -57,10 +49,10 @@ module.exports = {
libraryTarget: 'commonjs2',
},
externals: {
react: resolve(builtModulesDir, 'react'),
'react-dom': resolve(builtModulesDir, 'react-dom/unstable_testing'),
'react-is': resolve(builtModulesDir, 'react-is'),
scheduler: resolve(builtModulesDir, 'scheduler'),
react: 'react',
'react-dom': 'react-dom',
'react-is': 'react-is',
scheduler: 'scheduler',
},
node: {
// source-maps package has a dependency on 'fs'
Expand Down

0 comments on commit b10c378

Please sign in to comment.