Giter VIP home page Giter VIP logo

Comments (1)

maier49 avatar maier49 commented on June 3, 2024

Testing out some different avenues for leveraging esbuild so far has promising results.

Using a simple rollup build with esbuild builds a functioning Dojo app within 3 seconds. The one issue remaining here is it's re-processing the css modules in node_modules and I think we might need to write our own plugins to resolve that simillarly to with the existing dojo build. The main concern here is obviously that this is an extremely simple build and after building out the full set of functionality currently provided by cli-build-app the performance differences might evaporate.

Simply using the esbuild loader instead of the ts loader also reduced builld times by about 20% no a basic Dojo app, from 11 seconds to 9 seconds. This branch of that same example repo is using a version of cli-build-app that includes the changes here.

The only thing we'd need to worry about here as far as I can tell is the transforms. We could easily switch to the ts loader for The registry transform since it's triggered by an explicit configuration. For the import transform we may need to wait to see if esbuild gets plugin support that would allow us to do something analagous. Or potentially we use esbuild only for dev builds and ts loader for production.

from cli-build-app.

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.