Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Commit 264114e

Browse files
committed
changed RequestShortener defaulting behavior for compiler.context since it seems to have magically fixed itself
1 parent 5b5e122 commit 264114e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"dependencies": {
3333
"source-map": "^0.5.6",
34-
"uglify-es": "^3.0.21",
34+
"uglify-es": "^3.0.24",
3535
"webpack-sources": "^1.0.1"
3636
},
3737
"devDependencies": {

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Author Tobias Koppers @sokra
44
*/
55

6-
import path from 'path';
76
import { SourceMapConsumer } from 'source-map';
87
import { SourceMapSource, RawSource, ConcatSource } from 'webpack-sources';
98
import RequestShortener from 'webpack/lib/RequestShortener';
@@ -150,7 +149,7 @@ class UglifyJsPlugin {
150149
}
151150

152151
apply(compiler) {
153-
const requestShortener = new RequestShortener(compiler.context || path.resolve());
152+
const requestShortener = new RequestShortener(compiler.context);
154153
// Copy uglify options
155154
const uglifyOptions = UglifyJsPlugin.buildDefaultUglifyOptions(this.uglifyOptions);
156155
// Making sure output options exists if there is an extractComments options

0 commit comments

Comments
 (0)