Giter Club home page Giter Club logo

Comments (5)

kofrasa avatar kofrasa commented on July 18, 2024

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:

  1. Split library into multiple modules
  2. 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.

stalniy avatar stalniy commented on July 18, 2024

the easiest option is to use rollup + babel + babel external helpers plugin

from mingo.

kofrasa avatar kofrasa commented on July 18, 2024

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.

stalniy avatar stalniy commented on July 18, 2024

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.

kofrasa avatar kofrasa commented on July 18, 2024

This should now be available on npm [email protected]

from mingo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.