Skip to content

Remove static properties from helpers - #1575

Merged
UziTech merged 1 commit into
markedjs:masterfrom
Andarist:remove-statics-from-helpers
Dec 5, 2019
Merged

Remove static properties from helpers#1575
UziTech merged 1 commit into
markedjs:masterfrom
Andarist:remove-statics-from-helpers

Conversation

@Andarist

Copy link
Copy Markdown
Contributor

Static properties used like this at the top-level are a common tree-shaking / dead code elimination deopt (because they affect other top-level statements) so ideally, this pattern should be avoided as much as possible.

This is the last PR from me today - I'd like to see how those play out first, but I have more changes planned.

@vercel

vercelBot commented Dec 4, 2019

Copy link
Copy Markdown

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/markedjs/markedjs/kmea584ch
🌍 Preview: https://markedjs-git-fork-andarist-remove-statics-from-helpers.markedjs.now.sh

@styflestyfle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this reads much better now, thanks 👍

@UziTech
UziTech merged commit edf87e3 into markedjs:masterDec 5, 2019
@UziTechUziTech mentioned this pull request Dec 5, 2019
Merged
12 tasks
This was referenced Dec 20, 2019
Sign up for freeto 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.

3 participants

@Andarist@UziTech@styfle