Skip to content

Commit d3b1bea

Browse files
refactor: code
1 parent 7c3925a commit d3b1bea

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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({

types/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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;
9495
type Compilation = import("webpack").Compilation;
9596
type WebpackError = import("webpack").WebpackError;
9697
type Asset = import("webpack").Asset;
98+
type AssetInfo = import("webpack").AssetInfo;
9799
type GlobbyOptions = import("tinyglobby").GlobOptions;
98100
type WebpackLogger = ReturnType<Compilation["getLogger"]>;
99101
type CacheFacade = ReturnType<Compilation["getCache"]>;

0 commit comments

Comments
 (0)