mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #9830 from overleaf/ae-exclude-hot-source-editor
Exclude source-editor from React Refresh webpack plugin GitOrigin-RevId: 0b2701363cfe406744669c4337450c93e7527e40
This commit is contained in:
parent
7fe44050f1
commit
9a5a3d4372
1 changed files with 6 additions and 1 deletions
|
@ -45,7 +45,12 @@ module.exports = merge(base, {
|
|||
filename: 'stylesheets/[name].css',
|
||||
}),
|
||||
|
||||
new ReactRefreshWebpackPlugin(),
|
||||
new ReactRefreshWebpackPlugin({
|
||||
exclude: [
|
||||
/node_modules/, // default
|
||||
/source-editor/, // avoid crashing the source editor
|
||||
],
|
||||
}),
|
||||
|
||||
// Disable React DevTools if DISABLE_REACT_DEVTOOLS is set to "true"
|
||||
process.env.DISABLE_REACT_DEVTOOLS === 'true' &&
|
||||
|
|
Loading…
Reference in a new issue