Comments (5)
Thanks for the ask @stalniy
This work has been on my radar for a while since I initially built this library to target the browser. The options were:
- Split library into multiple modules
- Enable custom builds via a simple bundling tool
My preference is for option 2 however, I found the tools available generally try to do too many things which make things a bit complicated.
I have also experimented with using ES6 in the past mingo.js but the generated code came out even larger. Perhaps this has gotten better.
I am happy to revisit this and will investigate the current tools available which can enable this in the simplest way possible.
Thanks
from mingo.
the easiest option is to use rollup
+ babel
+ babel external helpers plugin
from mingo.
Current port residing here. https://github.com/kofrasa/mingo/tree/dev-es6
A lot has change since I last looked at the ES6 landscape. I am very impressed with the tooling (rollup
+ babel
). The generated code for babel
has improved significantly.
Version 2.0.0
of mingo
will support ES6 modules. Just a little bit of work left and this can be merged into the main dev branch.
[UPDATE]
Addressed in mingo!1.3.0
. Not ready for a major release bump.
from mingo.
Awesome! If you need help with rollup configuration to display correct coverage you can check my repository https://github.com/stalniy/casl/tree/master/tools
from mingo.
This should now be available on npm [email protected]
from mingo.
Related Issues (20)
- addOperators replacement? HOT 4
- dateToParts timezone returning incorrect hour HOT 1
- Add support for $lastN (aggregation) HOT 1
- Add support for $lastN (array) HOT 1
- Add support for $firstN (array) HOT 1
- Add support for $firstN (aggregation) HOT 1
- Add support for $sortArray (aggregation) HOT 1
- Add support for $bottom (aggregation) HOT 1
- Add support for $bottomN (aggregation) HOT 1
- Add support for $top (aggregation) HOT 1
- Add support for $topN (aggregation) HOT 3
- Add support for $minN (aggregation) HOT 1
- Add support for $minN (array) HOT 1
- Add support for $maxN (array) HOT 1
- Add support for $maxN (aggregation) HOT 1
- Add support for $locf (aggregation)
- Add support for $cosh (expression) HOT 1
- Add support for $sinh (expression) HOT 1
- Possible breaking error in 6.1.1 `dateFromParts` HOT 1
- core.addOperators is missing HOT 1
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 mingo.