Comments (7)
Itβs a good idea - i think we could just use the ramda one as a baseline, right?
from remeda.
Tree shaking is supported by default. I think we don't need any plugins.
from remeda.
I would also see it as a non-goal for now. If someone wants to create a separate babel-plugin repo, they can do so.
from remeda.
depends on your bundler I'd say? some don't support tree-shaking (like parcel v1.0), and it would help to transform the imports there. I am currently enforcing this manually with an eslint rule :)
from remeda.
@TkDodo https://medium.com/@devongovett/parcel-v1-9-0-tree-shaking-2x-faster-watcher-and-more-87f2e1a70f79
I did only a quick research. Based on the above article, tree shaking is supported in Parcel, and this news is almost 3 years.
from remeda.
@lstkz it was just an example, and parcel
has a --experimental-scope-hoisting
flag to enable treeshaking, so it's still "experimental". It will be on per default in v2, but there are still many issues with it, and v2 is in alpha stage.
from remeda.
I'm not sure that a such plugin is a win for the community. In fact, I see it as a loss, if maintained by remeda team, because:
- It takes time and energy from the core functionalities, which are THE value of remeda.
- It's a waste of time, if every library implements a babel plugin instead of solving it in the right place, for example bundler. If some bundlers doesn't have tree-shaking, then it's still just matter of time. I can't imagine using a bundler without tree-shaking support or some pre/post-processing step for ALL libraries, not only through plugins for some of them.
- I didn't used babel for years, at least not directly (for example with CRA). Therefore I'm not sure, that a tool-specific solution helps the community. If snowpack resolves some problems with monorepos, then I would like to move from webpack + ts-loader to snowpack + tsc.
from remeda.
Related Issues (20)
- `isObject` documentation is slightly off HOT 4
- `debounce` utils HOT 3
- Add `match` and `matchAll` HOT 7
- Add `add` and `multiply` functions. HOT 10
- Request to not remove compact HOT 3
- [Feature Proposal] Adding Ramda's `evolve` HOT 3
- Add function to get a random item from array HOT 2
- Add isSymbol HOT 1
- Add string manipulation utilities like camelCase, startCase, etc HOT 4
- Add partial, partialRight HOT 2
- Filter types when using isArray break when data type is readonly HOT 2
- [Feature Request]: Object property predicates like `hasProp` (includes proof of concept) HOT 15
- Add round HOT 5
- Add `findSingle` HOT 2
- Add `mapWithFeedback` (aka scan, accumulate, partial_sum, runningReduce) HOT 4
- Add `zipEqual` and `zipLongest` HOT 10
- Add `moveIndex` HOT 3
- Add combinatorial iterators: `product`, `permutations`, `combinations`, etc. HOT 3
- Investigating issues with pre-commit hook/lint-staged.
- In a pipe, even if the result of hasAtLeast is true, the return type is not Object, it is still boolean HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remeda.