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

Added editorconfig properties for preserving trailing newline #499

Closed
wants to merge 3 commits into from
Closed

Added editorconfig properties for preserving trailing newline #499

wants to merge 3 commits into from

Conversation

brynmrk
Copy link

@brynmrk brynmrk commented Oct 19, 2019

Fixes #497

@developit
Copy link
Owner

Hi @brynmrk! Thanks for the PR! This is what we'll want to add to repositories that are built with Microbundle, but I think in order to fix #497 there may be one additional thing required: we need to check for the extra trailing line ending when reading in the mangle.json file (on this line), and then insert it when writing the file (on this line).

Think you'd be interested in add that to your PR? Cheers!

@@ -22,8 +22,8 @@ Build \\"aliasMapping\\" to dist:
46 B: alias-mapping.js.br
62 B: alias-mapping.esm.js.gz
46 B: alias-mapping.esm.js.br
118 B: alias-mapping.umd.js.gz
Copy link
Owner

Choose a reason for hiding this comment

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

I've updated the tests now that #495 is merged, so only two should be failing. We can actually skip updating the snapshots for that in this PR since it's a real bug still to be fixed elsewhere :)

@brynmrk brynmrk closed this Oct 24, 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.

Preserve trailing newline in mangle.json
2 participants