Comments (5)
I think the move will likely have negative effect on bundle size, what do you think about it ?
from aurelia.
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.
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.
Sounds good :)
from aurelia.
Closing this since my request for comment has been fulfilled :)
from aurelia.
Related Issues (20)
- package "exports" field prevents importing dev builds without a bundler HOT 3
- AUR3352: Unexpected state at swap of VPA
- Aurelia Router - Duplicate content
- Portal attribute: aurelia markup <!--au-start--><!--au-end--> are not removed
- Calling store.dispatch in sequence will only set the new state once
- Incorrect injection of parent custom element HOT 6
- New instance injected when using CustomElementDefinition#dependencies HOT 1
- OPEN COLLECTIVE FUNDS HOT 2
- [feature request] state plugin should be able to connect to redux devtools HOT 1
- 🏁 Roadmap & Iteration plan Q1 2024 HOT 3
- flickering caused by aurelia rendering content before clearing the old HOT 2
- [RFC] Custom element bindables take priority over custom attribute
- [refactor] remove define life cycle HOT 1
- Vite plugin for aurelia 1.x? HOT 4
- Router load attribute: broken when using id & parameters.bind HOT 7
- Injecting IHttpClient error after beta 11 update
- Router swallows DI errors HOT 7
- Restrict behavior of custom attribute single value binding and primary bindable HOT 8
- Tweak aurelia package reexports HOT 9
- Validation Package - Email validation HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aurelia.