Git Product home page Git Product logo

Comments (5)

bigopon avatar bigopon commented on May 14, 2024

I think the move will likely have negative effect on bundle size, what do you think about it ?

from aurelia.

EisenbergEffect avatar EisenbergEffect commented on May 14, 2024

I'm concerned that this will not only enlarge the bundle size but make it much harder for people to start a new project. We want to have a way to do this without needing npm or a bundler. Single-file script is still something we eventually want.

I'd vote to wait on anything like this for a while. However, I don't see any reason not to do the design work on breaking things into different classes. I think we should consider that independent of how the packages are shipped right now.

from aurelia.

fkleuver avatar fkleuver commented on May 14, 2024

I think the move will likely have negative effect on bundle size, what do you think about it ?

Not that much. There is of course the overhead of the extra class declarations, but most of the logic can still be shared via decorators. Then there will also be a few lines of code less due to certain conditionals that aren't necessary anymore (speaking of observers)

We want to have a way to do this without needing npm or a bundler. Single-file script is still something we eventually want.

We could output multiple bundles for the runtime with packages included/excluded if single file is an important thing. For those who don't need two-way (static / marketing sites, etc) they would have a smaller bundle in the end.

I'd vote to wait on anything like this for a while. However, I don't see any reason not to do the design work on breaking things into different classes. I think we should consider that independent of how the packages are shipped right now.

I was curious what you guys thought about it and I agree. Not something I planned to do soon, but we can keep it in mind with the design. For example by putting the observers in their own folder.

from aurelia.

EisenbergEffect avatar EisenbergEffect commented on May 14, 2024

Sounds good :)

from aurelia.

fkleuver avatar fkleuver commented on May 14, 2024

Closing this since my request for comment has been fulfilled :)

from aurelia.

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.