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

(chore) - remove closure-compiler #1570

Merged
merged 8 commits into from
Apr 28, 2021
Merged

(chore) - remove closure-compiler #1570

merged 8 commits into from
Apr 28, 2021

Conversation

JoviDeCroock
Copy link
Collaborator

Fixes: #1552

Summary

The current rollup plugin isn't really maintained and we were seeing frequent issues with metro and bundles compiled by closure

Set of changes

  • remove rollup-plugin-closure-compiler

…ained and we were seeing frequent issues with metro and bundles compiled by closure
@JoviDeCroock JoviDeCroock requested a review from kitten as a code owner April 26, 2021 16:45
@changeset-bot
Copy link

changeset-bot bot commented Apr 26, 2021

🦋 Changeset detected

Latest commit: d97cfa5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
Name Type
@urql/exchange-auth Patch
@urql/exchange-execute Patch
@urql/exchange-graphcache Patch
@urql/exchange-multipart-fetch Patch
@urql/exchange-persisted-fetch Patch
@urql/exchange-populate Patch
@urql/exchange-refocus Patch
@urql/exchange-request-policy Patch
@urql/exchange-retry Patch
@urql/exchange-suspense Patch
@urql/core Patch
@urql/introspection Patch
next-urql Patch
@urql/preact Patch
urql Patch
@urql/storybook-addon Patch
@urql/svelte Patch
@urql/vue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JoviDeCroock JoviDeCroock changed the title (chore) - remove closure-compiler, (chore) - remove closure-compiler Apr 26, 2021
@@ -0,0 +1,22 @@
---
Copy link
Member

Choose a reason for hiding this comment

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

This is just personal taste FWIW but I believe we shouldn't forcefully bump all builds, maybe? It'd be cool if there was a way to tell changesets to "ignore" one and only include it when a non-ignored change set was in a release too

scripts/rollup/plugins.js Show resolved Hide resolved
kitten added 5 commits April 27, 2021 11:07
Buble/Babel (and transformers in general) like to transform
arrow functions to function expressions on variable declarations.
At the toplevel of modules we can clean this up by replacing them
with function declarations, which leads to cleaner minifier output.
@kitten
Copy link
Member

kitten commented Apr 28, 2021

Removing Closure Compiler (and Babel Plugin Closure Elimination) in this PR. Added a transformation to clean up arrow functions. Instead of having a lot of function expressions, a lot of those are now converted to function declarations which leads to a net negative bundle size on average

@kitten kitten merged commit 25e6c5b into main Apr 28, 2021
@kitten kitten deleted the remove-closure-compiler branch April 28, 2021 11:52
@github-actions github-actions bot mentioned this pull request Apr 28, 2021
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.

Weird naming collision in @urql/exchange-graphcache crashes in react-native
2 participants