Skip to content

Commit b4535f6

Browse files
authored
chore(deps): add support for [email protected] (#30)
1 parent b43469c commit b4535f6

File tree

3 files changed

+10
-19
lines changed

3 files changed

+10
-19
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/react-scripts/config/webpack.config.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,6 @@ module.exports = function (webpackEnv) {
356356
plugins: path.resolve(paths.appSrc, 'plugins/'),
357357
// This alias allows us to import presets as absolute path
358358
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',
361359
// This alias makes sure we don't pull two different versions of monaco-editor
362360
'monaco-editor': '/node_modules/monaco-editor',
363361
// This alias makes sure we're avoiding a runtime error related to this package
@@ -373,6 +371,7 @@ module.exports = function (webpackEnv) {
373371
// Make sure your source files are compiled, as they will not be processed in any way.
374372
new ModuleScopePlugin(paths.appSrc, [
375373
paths.appPackageJson,
374+
'/node_modules/monaco-editor',
376375
reactRefreshRuntimeEntry,
377376
reactRefreshWebpackPluginRuntimeEntry,
378377
babelRuntimeEntry,
@@ -397,15 +396,7 @@ module.exports = function (webpackEnv) {
397396
// Handle node_modules packages that contain sourcemaps
398397
shouldUseSourceMap && {
399398
enforce: 'pre',
400-
exclude: [
401-
/@babel(?:\/|\\{1,2})runtime/,
402-
/vscode-languageclient/,
403-
/vscode-languageserver-protocol/,
404-
/vscode-jsonrpc/,
405-
/autolinker/,
406-
/@jsdevtools\/ono/,
407-
/@stoplight/,
408-
],
399+
exclude: [/autolinker/, /@jsdevtools\/ono/, /@stoplight/],
409400
test: /\.(js|mjs|jsx|ts|tsx|css)$/,
410401
loader: require.resolve('source-map-loader'),
411402
},

packages/react-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"buffer": "^6.0.3",
9696
"react": ">= 16",
9797
"typescript": "^3.2.1 || ^4",
98-
"monaco-editor": ">= 0.34.1",
98+
"monaco-editor": ">= 0.44.0",
9999
"stream-browserify": "^3.0.0",
100100
"stream-http": "^3.2.0",
101101
"url": ">=0.11.2"

0 commit comments

Comments
 (0)