Skip to content

Commit ff176b7

Browse files
alan-agius4dherges
authored andcommitted
fix: update uglify-js version (#754)
Fixes a build error `ENOENT: no such file or directory` Closes #752
1 parent 83ea504 commit ff176b7

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"strip-bom": "^3.0.0",
5555
"stylus": "^0.54.5",
5656
"tar": "^4.4.1",
57-
"uglify-js": "^3.0.7",
57+
"uglify-js": "^3.3.20",
5858
"update-notifier": "^2.3.0"
5959
},
6060
"peerDependencies": {

src/lib/flatten/uglify.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export async function minifyJsFile(inputPath: string): Promise<string> {
1818

1919
const result = minify(inputFileBuffer.toString(), {
2020
sourceMap: {
21+
includeSources: true,
2122
content: JSON.parse(inputSourceMapBuffer.toString()),
2223
url: basename(sourcemapOut)
2324
},

yarn.lock

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -758,10 +758,14 @@ commander@2.11.0:
758758
version "2.11.0"
759759
resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563"
760760

761-
commander@^2.12.0, commander@^2.9.0, commander@~2.12.1:
761+
commander@^2.12.0, commander@^2.9.0:
762762
version "2.12.2"
763763
resolved "https://registry.yarnpkg.com/commander/-/commander-2.12.2.tgz#0f5946c427ed9ec0d91a46bb9def53e54650e555"
764764

765+
commander@~2.15.0:
766+
version "2.15.1"
767+
resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f"
768+
765769
commenting@1.0.5:
766770
version "1.0.5"
767771
resolved "https://registry.yarnpkg.com/commenting/-/commenting-1.0.5.tgz#3104d542cac8a4f27b3d51438f4b80431fe4526b"
@@ -3718,11 +3722,11 @@ uglify-js@^2.6:
37183722
optionalDependencies:
37193723
uglify-to-browserify "~1.0.0"
37203724

3721-
uglify-js@^3.0.7:
3722-
version "3.2.1"
3723-
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.2.1.tgz#d6427fd45a25fefc5d196689c0c772a6915e10fe"
3725+
uglify-js@^3.3.20:
3726+
version "3.3.20"
3727+
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.3.20.tgz#dc8bdee7d454c7d31dddc36f922d170bfcee3a0a"
37243728
dependencies:
3725-
commander "~2.12.1"
3729+
commander "~2.15.0"
37263730
source-map "~0.6.1"
37273731

37283732
uglify-to-browserify@~1.0.0:

0 commit comments

Comments
 (0)