Skip to content

Commit 47b6765

Browse files
committed
Move node polyfills in webpack config to 3rd party in preparation for webpack 5
1 parent 1f81469 commit 47b6765

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/react-error-overlay/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"jest": "25.5.4",
5656
"jest-fetch-mock": "2.1.2",
5757
"object-assign": "4.1.1",
58+
"path-browserify": "^1.0.1",
5859
"promise": "8.1.0",
5960
"raw-loader": "^3.1.0",
6061
"react": "^16.12.0",

packages/react-error-overlay/src/utils/unmapper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import StackFrame from './stack-frame';
1010
import { getSourceMap } from './getSourceMap';
1111
import { getLinesAround } from './getLinesAround';
12-
import path from 'path';
12+
import path from 'path-browserify';
1313

1414
function count(search: string, string: string): number {
1515
// Count starts at -1 because a do-while loop always runs at least once

0 commit comments

Comments
 (0)