Skip to content

Commit

Permalink
feat: handle @StopLight stack (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n authored Sep 19, 2023
1 parent 94ef39b commit e7ebbca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@ module.exports = function (webpackEnv) {
'monaco-editor$': 'monaco-editor/esm/vs/editor/edcore.main.js',
// This alias makes sure we don't pull two different versions of monaco-editor
'monaco-editor': '/node_modules/monaco-editor',
// This alias makes sure we're avoiding a runtime error related to this package
'@stoplight/ordered-object-literal$':
'/node_modules/@stoplight/ordered-object-literal/src/index.mjs',
// This alias makes sure we don't pull two different versions of ApiDOM.
// swagger-client uses ApiDOM as well, and might come with different ApiDOM version.
// SwaggerEditor ApiDOM dependency takes precendence in the resolution.
Expand Down Expand Up @@ -466,6 +469,7 @@ module.exports = function (webpackEnv) {
/vscode-jsonrpc/,
/autolinker/,
/@jsdevtools\/ono/,
/@stoplight/,
],
test: /\.(js|mjs|jsx|ts|tsx|css)$/,
loader: require.resolve('source-map-loader'),
Expand Down

0 comments on commit e7ebbca

Please sign in to comment.