framework/js
David Wheatley da5db714c2
Remove lodash from core (#2827)
* Remove `lodash-es` dependency

* Replace `escapeRegExp` with home-made util

* Replace `throttle` with `throttle-debounce` library

* Use native browser methods for `deepFlatten`

We need a polyfill for iOS 11 and below. I think using a native method with this polyfill is better than having our own function instead, even if the bundle size is ~150B more.

* Save a few bytes in `escapeRegExp`

* Fix typo in comment

* Undo import re-organisation

* Use spread instead of slice

* Use smaller Array.flat polyfill from MDN

* Export new utils in `compat.js`
2021-05-06 00:28:22 +01:00
..
dist Bundled output for commit 588a9f952f [skip ci] 2021-05-05 14:47:48 +00:00
src Remove lodash from core (#2827) 2021-05-06 00:28:22 +01:00
.bundlewatch.config.json Add bundlewatch to track bundle size changes in PRs (#2695) 2021-03-17 14:54:42 +00:00
.prettierrc.json Configure prettier via JSON file 2020-04-17 10:44:36 +02:00
admin.js Webpack (#1367) 2018-06-20 13:20:31 +09:30
forum.js Webpack (#1367) 2018-06-20 13:20:31 +09:30
package-lock.json Remove lodash from core (#2827) 2021-05-06 00:28:22 +01:00
package.json Remove lodash from core (#2827) 2021-05-06 00:28:22 +01:00
shims.d.ts Bump dependencies, add missing typing libraries (#2753) 2021-04-08 12:35:10 +01:00
tsconfig.json Update tsconfig file to include .tsx files (#2457) 2020-11-26 12:00:13 -05:00
webpack.config.js Add option to build with Webpack Bundle Analyzer (#2708) 2021-04-10 15:00:48 +01:00