Giter Club home page Giter Club logo

Comments (7)

gfranko avatar gfranko commented on August 27, 2024

This is definitely possible and shouldn't be too difficult. Basically, if there is only one AST object (e.g function) in the callback function body and no dependencies, then convert the module to the optimized format. I'll try to get this done in the next day or two.

from amdclean.

Rich-Harris avatar Rich-Harris commented on August 27, 2024

Brilliant!

from amdclean.

gfranko avatar gfranko commented on August 27, 2024

If you can think of any other optimizations, definitely let me know. I think the project is stable enough now that we can now focus on more minor optimizations like this.

from amdclean.

gfranko avatar gfranko commented on August 27, 2024

These optimizations have now been incorporated with the 0.7.0 release! Check out the release notes for more details.

Thanks for pointing out these optimizations Rich!

from amdclean.

Rich-Harris avatar Rich-Harris commented on August 27, 2024

Excellent! Many thanks. It's been great to watch amdclean get better and better - developing a library as a collection of AMD modules is such a pleasure (testing without building, etc) and it's only practical to do so because of amdclean. Great work.

from amdclean.

gfranko avatar gfranko commented on August 27, 2024

You and I like to build libraries in a similar way. Love using AMD for it.

And I appreciate all the kind words, but you should give yourself credit too. AMDClean wouldn't be where it is now without you. Hopefully once I find some free time I can contribute to some of your awesome projects, like Ractive.js

from amdclean.

Rich-Harris avatar Rich-Harris commented on August 27, 2024

That'd be great :)

from amdclean.

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.