Skip to content

Conversation

@nqdy666
Copy link
Contributor

@nqdy666 nqdy666 commented Aug 26, 2019

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@okuryu
Copy link
Collaborator

okuryu commented Aug 27, 2019

Hmm, could you add tests?

index.js Outdated
return String(str);
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: I think the indent is unnecessary.

Copy link
Collaborator

@okuryu okuryu left a comment

Choose a reason for hiding this comment

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

👍

@okuryu okuryu merged commit 356987f into yahoo:master Aug 29, 2019
@okuryu
Copy link
Collaborator

okuryu commented Aug 29, 2019

published serialize-javascript@1.9.0. Thanks!

TrySound referenced this pull request in TrySound/rollup-plugin-uglify Aug 30, 2019
* Reject sourcemap before sending it to uglify At some point today, our builds started failing with a sourcemap error from this lib. Running the tests here makes it replicable: ``` ● allow to disable source maps DefaultsError: `sourcemap` is not a supported option at DefaultsError.get (eval at <anonymous> (node_modules/uglify-js/tools/node.js:20:1), <anonymous>:71:23) ``` This fixes the error by rejecting the option uglify is now rejecting before the whole thing crashes. * Use delete to mutate options object instead of a new copy * Upgrade serialize-javascript
@src-code
Copy link

I believe this change introduced a regression, will open an issue

@src-code
Copy link

#57

okuryu added a commit that referenced this pull request Sep 4, 2019
okuryu added a commit that referenced this pull request Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants