Skip to content

Instantly share code, notes, and snippets.

View Matthew-Burfield's full-sized avatar
🏠
Working from home

Matthew Burfield Matthew-Burfield

🏠
Working from home
View GitHub Profile
{
"hash": "ebac517150268511e705",
"version": "5.23.0",
"time": 2114,
"builtAt": 1613762996053,
"publicPath": "auto",
"outputPath": "/home/matthew/Development/webpack/dist",
"assetsByChunkName": {
"index": ["index.bundle.js"],
"another": ["another.bundle.js"]
{
"hash": "7aea43f473a03e1315e6",
"version": "5.23.0",
"time": 3059,
"builtAt": 1613763466730,
"publicPath": "auto",
"outputPath": "/home/matthew/Development/webpack/dist",
"assetsByChunkName": {
"index": ["index.bundle.js"],
"another": ["another.bundle.js"]
@Matthew-Burfield
Matthew-Burfield / remove-immutable.md
Created May 10, 2023 06:44 — forked from guilhermebruzzi/remove-immutable.md
Remove Immutable JS from your source code

I decided to remove all Immutable code on our big project because it wasn't causing our React to render less (using selectors on our redux layer was actually better).

Since our project has tests to check if everything is still working, I was able to achieve that with the following steps:

Search on all files on vscode or any editor with Use Regular Expression option (command+alt+r on vscode):

(Immutable|\.(size|count\(|toJS(?!\w)|fromJS(?!\w)|first[\(\)]|get\(|set\(|findEntry\(|getIn\(|setIn\(|contains\(|delete\(|asImmutable|add\())

Then on each find that was actually from a Immutable code:

  • Remove Immutable imports