Skip to content

Commit

Permalink
Revert changes to react-devtools-inline Webpack config from PR facebo…
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn authored and nevilm-lt committed Apr 22, 2022
1 parent 536b230 commit 2b567b9
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 2b567b9

Please sign in to comment.