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

build(webpack): Remove lodash-webpack-plugin #15521

Merged
merged 9 commits into from
Nov 13, 2019

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Nov 8, 2019

Undoes the work in introduced in #5616.

This plugin adds around 40-50 seconds to webpack build times and has caused confusion (see #13834).

-- With Plugin Without Plugin Difference lodash-es lodash-es + react-mentions
app.js 739051 739120 0%
app.js.gzip 184017 184040 0% 186949
vendor.js 2076311 2090876 +0.7% 2089352
vendor.js.gizp 375718 380446 + 1.2% 380630 380476
build time (w/ stats) 316s 466s + 47%
build time (env=prod) 335s 198s n/a

Currently, there is no sizable difference between lodash-es and lodash -- we should revisit this in the future.

@billyvg billyvg force-pushed the build/webpack/remove-lodash-webpack-plugin branch 3 times, most recently from fb89c8e to 4cc2fbb Compare November 11, 2019 22:48
@billyvg billyvg force-pushed the build/webpack/remove-lodash-webpack-plugin branch from 0d16e27 to 6613a86 Compare November 12, 2019 22:29
@billyvg billyvg marked this pull request as ready for review November 12, 2019 23:10
@billyvg billyvg changed the title build(webpack): Remove lodash-webpack-plugin [WIP] build(webpack): Remove lodash-webpack-plugin Nov 12, 2019
@billyvg billyvg force-pushed the build/webpack/remove-lodash-webpack-plugin branch from 6613a86 to 7bc1763 Compare November 12, 2019 23:10
@billyvg billyvg force-pushed the build/webpack/remove-lodash-webpack-plugin branch from 7bc1763 to d171663 Compare November 12, 2019 23:41
@billyvg billyvg requested a review from a team November 13, 2019 00:14
Copy link
Member

@evanpurkhiser evanpurkhiser left a comment

Choose a reason for hiding this comment

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

Love this

@scefali
Copy link
Contributor

scefali commented Nov 13, 2019

@billyvg do we have an ES lint rule to prevent folks from importing the full lodash library?

@billyvg
Copy link
Member Author

billyvg commented Nov 13, 2019

@scefali ya it's linked getsentry/eslint-config-sentry#46

Copy link
Member

@dashed dashed left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@billyvg billyvg merged commit 4de0d59 into master Nov 13, 2019
@billyvg billyvg deleted the build/webpack/remove-lodash-webpack-plugin branch November 13, 2019 18:35
jan-auer added a commit that referenced this pull request Nov 13, 2019
* master: (59 commits)
  fix(btn-group-break): quick fix for issues table nav items (#15585)
  feat(ui): Change `<SmartSearchBar>` to simulate "search" on En… (#15345)
  ref: Update semaphore to 0.4.61 (#15574)
  fix(api): Fix failing snuba test in Django 1.9
  chore(ts): convert sentry app component files (#15575)
  build(github-actions): RIP github actions (#15577)
  feat(ui): Adapt user-feedback page to lightweight organization context (#15551)
  ref(logo replacement): converted pngs to svgs (#15552)
  Remove unused animated-ellipsis (#15515)
  fix: Fix `get_participants` to use `__in` correctly.
  build(webpack): Remove `lodash-webpack-plugin` (#15521)
  moved the bulk of plugins from test_only_plugins into new_sentry_plugins (#15468)
  ref: Remove "store.save-event-skips-nodestore" option from code (#15568)
  logging(app-context): adds more logging context for slack api errors (#15557)
  build(babel): Remove `@babel/polyfill` (#15564)
  chore(ts): convert sentryApps (#15565)
  chore(ts): convert SentryAppIcon (#15569)
  fix: Avoid updating with None (#15549)
  feat(api): Project key creation rate limit params (#15366)
  fix(api): Fix failing snuba test in Django 1.9
  ...
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants