Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): correctly reference hmr-accept.js…
Browse files Browse the repository at this point in the history
… file in windows error

Backslashes need to be changed to forward slashes for absolute imports to work in Windows.

Closes #19099

(cherry picked from commit 233e8e7)
  • Loading branch information
alan-agius4 committed Oct 16, 2020
1 parent b3011ea commit f9dc72f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { join } from 'path';

export const HmrLoader = __filename;
const hmrAcceptPath = join(__dirname, './hmr-accept.js');
const hmrAcceptPath = join(__dirname, './hmr-accept.js').replace(/\\/g, '/');

export default function (
this: import('webpack').loader.LoaderContext,
Expand Down

0 comments on commit f9dc72f

Please sign in to comment.