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

cheaper #129

Merged
merged 1 commit into from Jun 22, 2021
Merged

cheaper #129

merged 1 commit into from Jun 22, 2021

Conversation

sealice
Copy link
Contributor

@sealice sealice commented Mar 20, 2021

before

Build "mitt" to dist:
        187 B: mitt.js.gz       
        159 B: mitt.js.br       
        186 B: mitt.es.js.gz    
        161 B: mitt.es.js.br    
        183 B: mitt.modern.js.gz
        158 B: mitt.modern.js.br
        267 B: mitt.umd.js.gz   
        231 B: mitt.umd.js.br

after

Build "mitt" to dist:
        182 B: mitt.js.gz       
        152 B: mitt.js.br       
        181 B: mitt.es.js.gz    
        153 B: mitt.es.js.br    
        181 B: mitt.modern.js.gz
        154 B: mitt.modern.js.br
        261 B: mitt.umd.js.gz
        225 B: mitt.umd.js.br

If this PR is approved / merge, please consider #124 (Will not exceed 200b), consider the following application scenarios.

// listen
emitter.on('foo', () => {}) 

// unlisten
emitter.off('foo')

@DannyFeliz
Copy link

Hey @developit, sorry for the ping. Do you have any plan to integrate this into the package?

@developit
Copy link
Owner

At first glance this looks good, I will likely merge this and 124.

@developit developit self-requested a review May 16, 2021 22:55
@developit developit merged commit 7872a47 into developit:master Jun 22, 2021
@sealice sealice deleted the cheaper branch July 25, 2021 03:44
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