Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #55

Closed
wants to merge 1 commit into from
Closed

Conversation

wesvetter
Copy link

Fixes issue where using source maps with older versions of uglify generates
tons of warnings.

Using source maps with older versions of uglify generates many (~7000 for my
SPA) warnings that look like:

WARN: Couldn't figure out mapping for ?:62,2 → 1,1611 []
WARN: Couldn't figure out mapping for ?:62,15 → 1,1613 []
WARN: Couldn't figure out mapping for ?:63,4 → 1,1648 []
WARN: Couldn't figure out mapping for ?:68,9 → 1,1690 []
...

This is due to a bug in the source-map library which is a dependency
of uglify-js.

Restricting uglify-js and convert-source-map to newer versions ensures that
incompatible versions of source-map are not installed.

Fixes issue where using source maps with older versions of uglify generates
tons of warnings.

Using source maps with older versions of uglify generates many (~7000 for my
SPA) warnings that look like:

```
WARN: Couldn't figure out mapping for ?:62,2 → 1,1611 []
WARN: Couldn't figure out mapping for ?:62,15 → 1,1613 []
WARN: Couldn't figure out mapping for ?:63,4 → 1,1648 []
WARN: Couldn't figure out mapping for ?:68,9 → 1,1690 []
...
```

This is due to a [bug in the `source-map` library][bug] which is a dependency
of `uglify-js`.

Restricting `uglify-js` and `convert-source-map` to newer versions ensures that
incompatible versions of `source-map` are not installed.

[bug]: mishoo/UglifyJS#436
"extend": "^1.2.1",
"minimatch": "^2.0.7",
"through": "~2.3.4",
"uglify-js": "2.x.x"
"uglify-js": "^2.5.x"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not 2.7.x? Let's update it to the latest version

@rostik404
Copy link

rostik404 commented Aug 23, 2016

There is a problem with screw_ie8 option in uglify-js 2.6.x. Let's update it to ^2.7.0.

@wesvetter
Copy link
Author

I wanted to submit the most conservative change possible (so as not to affect others), but if it'll get a thumbs up from one of the maintainers I'm happy to bump the uglify-js version to latest 2.7 release.

@hughsk any objections to uglify-js ^2.7.0 ?

@wesvetter
Copy link
Author

@hughsk any chance you can take a couple minutes to review this?

@wesvetter
Copy link
Author

Closing this as it's no longer relevant.

@wesvetter wesvetter closed this Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants