@@ -356,8 +356,6 @@ module.exports = function (webpackEnv) {
356
356
plugins : path . resolve ( paths . appSrc , 'plugins/' ) ,
357
357
// This alias allows us to import presets as absolute path
358
358
presets : path . resolve ( paths . appSrc , 'presets/' ) ,
359
- // This alias doesn't pull any languages into bundles and works as monaco-editor-core was installed
360
- 'monaco-editor$' : 'monaco-editor/esm/vs/editor/edcore.main.js' ,
361
359
// This alias makes sure we don't pull two different versions of monaco-editor
362
360
'monaco-editor' : '/node_modules/monaco-editor' ,
363
361
// This alias makes sure we're avoiding a runtime error related to this package
@@ -373,6 +371,7 @@ module.exports = function (webpackEnv) {
373
371
// Make sure your source files are compiled, as they will not be processed in any way.
374
372
new ModuleScopePlugin ( paths . appSrc , [
375
373
paths . appPackageJson ,
374
+ '/node_modules/monaco-editor' ,
376
375
reactRefreshRuntimeEntry ,
377
376
reactRefreshWebpackPluginRuntimeEntry ,
378
377
babelRuntimeEntry ,
@@ -397,15 +396,7 @@ module.exports = function (webpackEnv) {
397
396
// Handle node_modules packages that contain sourcemaps
398
397
shouldUseSourceMap && {
399
398
enforce : 'pre' ,
400
- exclude : [
401
- / @ b a b e l (?: \/ | \\ { 1 , 2 } ) r u n t i m e / ,
402
- / v s c o d e - l a n g u a g e c l i e n t / ,
403
- / v s c o d e - l a n g u a g e s e r v e r - p r o t o c o l / ,
404
- / v s c o d e - j s o n r p c / ,
405
- / a u t o l i n k e r / ,
406
- / @ j s d e v t o o l s \/ o n o / ,
407
- / @ s t o p l i g h t / ,
408
- ] ,
399
+ exclude : [ / a u t o l i n k e r / , / @ j s d e v t o o l s \/ o n o / , / @ s t o p l i g h t / ] ,
409
400
test : / \. ( j s | m j s | j s x | t s | t s x | c s s ) $ / ,
410
401
loader : require . resolve ( 'source-map-loader' ) ,
411
402
} ,
0 commit comments