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 {
443
443
444
444
logger . debug ( `found '${ from } '` ) ;
445
445
446
- const absoluteFilename = from ;
446
+ const absoluteFilename = path . normalize ( from ) ;
447
447
const to =
448
448
typeof pattern . to === "function"
449
449
? await pattern . to ( {
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ declare namespace CopyPlugin {
62
62
Compilation ,
63
63
WebpackError ,
64
64
Asset ,
65
+ AssetInfo ,
65
66
GlobbyOptions ,
66
67
WebpackLogger ,
67
68
CacheFacade ,
@@ -94,6 +95,7 @@ type Compiler = import("webpack").Compiler;
94
95
type Compilation = import ( "webpack" ) . Compilation ;
95
96
type WebpackError = import ( "webpack" ) . WebpackError ;
96
97
type Asset = import ( "webpack" ) . Asset ;
98
+ type AssetInfo = import ( "webpack" ) . AssetInfo ;
97
99
type GlobbyOptions = import ( "tinyglobby" ) . GlobOptions ;
98
100
type WebpackLogger = ReturnType < Compilation [ "getLogger" ] > ;
99
101
type CacheFacade = ReturnType < Compilation [ "getCache" ] > ;
You can’t perform that action at this time.
0 commit comments