File tree 4 files changed +20
-15
lines changed
4 files changed +20
-15
lines changed Original file line number Diff line number Diff line change 83
83
" /fixtures/" ,
84
84
" setupJest.js"
85
85
]
86
+ },
87
+ "dependencies" : {
88
+ "path-browserify" : " ^1.0.0"
86
89
}
87
90
}
Original file line number Diff line number Diff line change 9
9
import StackFrame from './stack-frame' ;
10
10
import { getSourceMap } from './getSourceMap' ;
11
11
import { getLinesAround } from './getLinesAround' ;
12
- import path from 'path' ;
12
+ import path from 'path-browserify ' ;
13
13
14
14
function count ( search : string , string : string ) : number {
15
15
// Count starts at -1 because a do-while loop always runs at least once
Original file line number Diff line number Diff line change @@ -38,10 +38,11 @@ module.exports = {
38
38
optimization : {
39
39
nodeEnv : false ,
40
40
} ,
41
- node : {
42
- fs : 'empty' ,
43
- process : false ,
44
- } ,
41
+ // todo: Update before final webpack 5 release
42
+ // node: {
43
+ // fs: 'empty',
44
+ // process: false,
45
+ // },
45
46
performance : {
46
47
hints : false ,
47
48
} ,
Original file line number Diff line number Diff line change @@ -726,16 +726,17 @@ module.exports = function(webpackEnv) {
726
726
] . filter ( Boolean ) ,
727
727
// Some libraries import Node modules but don't use them in the browser.
728
728
// Tell Webpack to provide empty mocks for them so importing them works.
729
- node : {
730
- module : 'empty' ,
731
- dgram : 'empty' ,
732
- dns : 'mock' ,
733
- fs : 'empty' ,
734
- http2 : 'empty' ,
735
- net : 'empty' ,
736
- tls : 'empty' ,
737
- child_process : 'empty' ,
738
- } ,
729
+ // todo: Update before final webpack 5 release
730
+ // node: {
731
+ // module: 'empty',
732
+ // dgram: 'empty',
733
+ // dns: 'mock',
734
+ // fs: 'empty',
735
+ // http2: 'empty',
736
+ // net: 'empty',
737
+ // tls: 'empty',
738
+ // child_process: 'empty',
739
+ // },
739
740
// Turn off performance processing because we utilize
740
741
// our own hints via the FileSizeReporter
741
742
performance : false ,
You can’t perform that action at this time.
0 commit comments