File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
packages/react-scripts/config Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -460,6 +460,15 @@ module.exports = function (webpackEnv) {
460
460
and : [ / \. ( t s | t s x | j s | j s x | m d | m d x ) $ / ] ,
461
461
} ,
462
462
} ,
463
+ // Provide explicit import of `process` symbol.
464
+ {
465
+ test : / @ a p i d e v t o o l s \/ j s o n - s c h e m a - r e f - p a r s e r \/ l i b \/ u t i l \/ u r l .j s $ / ,
466
+ loader : 'imports-loader' ,
467
+ options : {
468
+ type : 'commonjs' ,
469
+ imports : [ 'single process/browser process' ] ,
470
+ } ,
471
+ } ,
463
472
{
464
473
test : / \. ( j s | m j s | j s x | t s | t s x ) $ / ,
465
474
include : paths . appSrc ,
@@ -856,14 +865,8 @@ module.exports = function (webpackEnv) {
856
865
} ,
857
866
} ) ,
858
867
new webpack . ProvidePlugin ( {
859
- process : 'process/browser.js' ,
860
868
Buffer : [ 'buffer' , 'Buffer' ] ,
861
869
} ) ,
862
- new webpack . BannerPlugin ( {
863
- banner : "globalThis.vscode = { process: Symbol.for('vscode') };" ,
864
- raw : true , // This is important, it tells webpack to prepend the code as-is.
865
- entryOnly : true , // This adds the banner only to the beginning of the bundle.
866
- } ) ,
867
870
enableProgressPlugin &&
868
871
new webpack . ProgressPlugin ( {
869
872
activeModules : false ,
You can’t perform that action at this time.
0 commit comments