File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ class CopyPlugin {
443443
444444 logger . debug ( `found '${ from } '` ) ;
445445
446- const absoluteFilename = from ;
446+ const absoluteFilename = path . normalize ( from ) ;
447447 const to =
448448 typeof pattern . to === "function"
449449 ? await pattern . to ( {
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ declare namespace CopyPlugin {
6262 Compilation ,
6363 WebpackError ,
6464 Asset ,
65+ AssetInfo ,
6566 GlobbyOptions ,
6667 WebpackLogger ,
6768 CacheFacade ,
@@ -94,6 +95,7 @@ type Compiler = import("webpack").Compiler;
9495type Compilation = import ( "webpack" ) . Compilation ;
9596type WebpackError = import ( "webpack" ) . WebpackError ;
9697type Asset = import ( "webpack" ) . Asset ;
98+ type AssetInfo = import ( "webpack" ) . AssetInfo ;
9799type GlobbyOptions = import ( "tinyglobby" ) . GlobOptions ;
98100type WebpackLogger = ReturnType < Compilation [ "getLogger" ] > ;
99101type CacheFacade = ReturnType < Compilation [ "getCache" ] > ;
You can’t perform that action at this time.
0 commit comments