Giter Site home page Giter Site logo

Comments (6)

tbroyer avatar tbroyer commented on May 18, 2024

"Bundling" is not done by J2Cl, but by the Closure Compiler (or anything else that's compatible with Closure's way of loading modules).

from j2cl.

sgammon avatar sgammon commented on May 18, 2024

@tbroyer, yes, indeed. however, Closure Compiler won't "chunk" (bundling is another term) without proper invocation.

i know there is a CLI-based set of flags for defining chunk boundaries, and optimization passes specific to chunking. however, i do not think J2CL is equipped to invoke Closure this way.

from j2cl.

gkdn avatar gkdn commented on May 18, 2024

Until this is high level support at underlying rules level (closure), we are not planning to do our own solution.

from j2cl.

sgammon avatar sgammon commented on May 18, 2024

@gkdn okay but do you care if users want it? i'm the author of a proposal to bring this to Rules Closure. it would be useful to keep this issue open to track how it might be adopted in J2CL

https://docs.google.com/document/d/1LxcJhpv5YEWAO28SiFYdKavIkSno4I4rY8UX3w_krKg

we can't really adopt J2CL without some form of chunking (it's not bundling because we're splitting code here, this is the terminology the compiler uses).

from j2cl.

gkdn avatar gkdn commented on May 18, 2024

I closed the issue because it was a question.

Internally, our users didn't need anything beyond the chunking provided by the underlying closure rules. However internally, we didn't provide a j2cl_application rule as well (since most users didn't need such a bootstrap).
Anyway; if we need to update j2cl_application rule to adapt chunking, that's not a problem. We will be happy to do that.

from j2cl.

sgammon avatar sgammon commented on May 18, 2024

@gkdn understood

from j2cl.

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.