Skip to content

Commit 75b9a2e

Browse files
authored
Merge pull request #114 from JanMalte/patch-1
fix: use path option for tracker output file
2 parents f2ae5f4 + 00002fe commit 75b9a2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ class BundleTrackerPlugin {
8686

8787
// Set output directories
8888
this.outputChunkDir = path.resolve(get(compiler.options, 'output.path', process.cwd()));
89+
// @ts-ignore: TS2345 this.options.path can't be undefined here because we set a default value above
8990
// @ts-ignore: TS2345 this.options.filename can't be undefined here because we set a default value above
90-
this.outputTrackerFile = path.resolve(this.options.filename);
91+
this.outputTrackerFile = path.resolve(path.join(this.options.path, this.options.filename));
9192
this.outputTrackerDir = path.dirname(this.outputTrackerFile);
9293

9394
return this;

0 commit comments

Comments
 (0)