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

feat(size): add sideEffects false to package.json #2861

Merged
merged 2 commits into from
Apr 5, 2018

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Apr 4, 2018

Why is this done? see https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free

Long story short, modules can do crazy things, but if we don't do any polyfilling, we can opt into better behaviour

fixes #2859 as good as we can for now

technically depends on #2860 being merged before we release this PR, because it counts as a side-effect

Why is this done? see <https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free>

Long story short, modules can do crazy things, but if we don't do any polyfilling, we can opt into better behaviour

fixes #2859 as good as we can for now
@Haroenv
Copy link
Contributor Author

Haroenv commented Apr 4, 2018

Before

1

After

2

@Haroenv
Copy link
Contributor Author

Haroenv commented Apr 4, 2018

(this will only make a difference for users of webpack 4 by the way)

@algobot
Copy link
Contributor

algobot commented Apr 4, 2018

Deploy preview for algolia-instantsearch ready!

Built with commit 570992f

https://deploy-preview-2861--algolia-instantsearch.netlify.com

@Haroenv
Copy link
Contributor Author

Haroenv commented Apr 5, 2018

@oliviertassinari do you have any idea why this has an "empty" screenshot, did something get corrupted for "original"?

@bobylito
Copy link
Contributor

bobylito commented Apr 5, 2018

Well that's super weird what happens with Argos. I have tested with the website and it seems to work. Let's merge :)

@bobylito bobylito merged commit f5d1ab1 into develop Apr 5, 2018
@bobylito bobylito deleted the feat/side-effects branch April 5, 2018 14:55
@oliviertassinari
Copy link
Contributor

oliviertassinari commented Apr 5, 2018

The base screenshot on the develop branch might have been corrupted 🤔 .

@Haroenv
Copy link
Contributor Author

Haroenv commented Apr 5, 2018

looks like that, since other PRs also broke @oliviertassinari

bobylito pushed a commit that referenced this pull request Apr 9, 2018
<a name=2.7.0></a>
# [2.7.0](v2.6.3...v2.7.0) (2018-04-09)

### Bug Fixes

* pagination padding ([#2866](#2866)) ([e8c58cc](e8c58cc))
* **geosearch:** avoid reset map when it already moved ([#2870](#2870)) ([f171b8a](f171b8a))
* **removeWidget:** check for widgets.length on next tick ([#2831](#2831)) ([7e639d6](7e639d6))

### Features

* **connetConfigure:** add a connector to create a connector widget ([8fdf752](8fdf752))
* **routing:** provide a mechanism to synchronize the search ([#2829](#2829)) ([75b2ca3](75b2ca3)), closes [#2849](#2849) [#2849](#2849)
* **size:** add sideEffects false to package.json ([#2861](#2861)) ([f5d1ab1](f5d1ab1)), closes [#2859](#2859)
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.

Tree-shaking doesn't seem to be working with latest Webpack
4 participants