Skip to content

Commit e7ebbca

Browse files
authored
feat: handle @StopLight stack (#25)
1 parent 94ef39b commit e7ebbca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@ module.exports = function (webpackEnv) {
360360
'monaco-editor$': 'monaco-editor/esm/vs/editor/edcore.main.js',
361361
// This alias makes sure we don't pull two different versions of monaco-editor
362362
'monaco-editor': '/node_modules/monaco-editor',
363+
// This alias makes sure we're avoiding a runtime error related to this package
364+
'@stoplight/ordered-object-literal$':
365+
'/node_modules/@stoplight/ordered-object-literal/src/index.mjs',
363366
// This alias makes sure we don't pull two different versions of ApiDOM.
364367
// swagger-client uses ApiDOM as well, and might come with different ApiDOM version.
365368
// SwaggerEditor ApiDOM dependency takes precendence in the resolution.
@@ -466,6 +469,7 @@ module.exports = function (webpackEnv) {
466469
/vscode-jsonrpc/,
467470
/autolinker/,
468471
/@jsdevtools\/ono/,
472+
/@stoplight/,
469473
],
470474
test: /\.(js|mjs|jsx|ts|tsx|css)$/,
471475
loader: require.resolve('source-map-loader'),

0 commit comments

Comments
 (0)