Skip to content

Commit d45d340

Browse files
refactor: drop normalize-url package
1 parent f391884 commit d45d340

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/hmr/normalize-url.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
function normalizeUrl(pathComponents) {
44
return pathComponents
5-
.reduce((accumulator, item) => {
5+
.reduce(function (accumulator, item) {
66
switch (item) {
77
case '..':
88
accumulator.pop();

test/cases/hmr/expected/webpack-4/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ module.exports = function (moduleId, options) {
11151115

11161116
function normalizeUrl(pathComponents) {
11171117
return pathComponents
1118-
.reduce((accumulator, item) => {
1118+
.reduce(function (accumulator, item) {
11191119
switch (item) {
11201120
case '..':
11211121
accumulator.pop();

test/cases/hmr/expected/webpack-5/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ module.exports = function (moduleId, options) {
257257

258258
function normalizeUrl(pathComponents) {
259259
return pathComponents
260-
.reduce((accumulator, item) => {
260+
.reduce(function (accumulator, item) {
261261
switch (item) {
262262
case '..':
263263
accumulator.pop();

0 commit comments

Comments
 (0)