Skip to content

Commit 5d21610

Browse files
authored
feat: use VSCode API + Monaco Editor built from [email protected] (#4860)
Refs #4848
1 parent f13c553 commit 5d21610

File tree

5 files changed

+121
-100
lines changed

5 files changed

+121
-100
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ module.exports = {
124124
},
125125
plugins: [
126126
new webpack.ProvidePlugin({
127-
process: 'process/browser.js',
128127
Buffer: ['buffer', 'Buffer'],
129128
}),
130129
],
@@ -155,6 +154,14 @@ module.exports = {
155154
loader: 'file-loader',
156155
type: 'javascript/auto', // this disables webpacks default handling of wasm
157156
},
157+
{
158+
test: /@apidevtools\/json-schema-ref-parser\/lib\/util\/url.js$/,
159+
loader: 'imports-loader',
160+
options: {
161+
type: 'commonjs',
162+
imports: ['single process/browser process'],
163+
},
164+
},
158165
]
159166
}
160167
};
@@ -211,7 +218,6 @@ module.exports = {
211218
},
212219
plugins: [
213220
new webpack.ProvidePlugin({
214-
process: 'process/browser.js',
215221
Buffer: ['buffer', 'Buffer'],
216222
}),
217223
new CopyWebpackPlugin({
@@ -232,7 +238,15 @@ module.exports = {
232238
{
233239
test: /\.css$/,
234240
use: ['style-loader', 'css-loader']
235-
}
241+
},
242+
{
243+
test: /@apidevtools\/json-schema-ref-parser\/lib\/util\/url.js$/,
244+
loader: 'imports-loader',
245+
options: {
246+
type: 'commonjs',
247+
imports: ['single process/browser process'],
248+
},
249+
},
236250
]
237251
}
238252
};

package-lock.json

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

0 commit comments

Comments
 (0)