Skip to content

Let all the modules to bundle on the app #406

Closed

Description

@arunoda

Currently, we use a pre-bundled set of modules to load core modules like React, React DOM etc.
With this (specially with built in CDN support) we thought to increase the page load speed.

But it seems like if cause few issues:

  • Some modules shared between the pre-packages bundle and the app's bundle (specially, babel and core-js related modules)
  • If the user use React like frameworks, this has no use.
  • Eventually, everyone will starting to use babel-preset-env. So, we never will be able to use the pre-packaged bundle.

So, we are getting rid of that and going back to the normal way how we bundle.

Activity

  1. self-assigned this
    on Dec 16, 2016
  2. matthewmueller commented on Dec 16, 2016

    @matthewmueller
    Contributor

    Oh interesting, so the client bundle is going away?

    I think those points make a lot of sense, but one thing I liked about the client bundle was that you could vendor it so it wasn't rebuilt with the pages each time, maybe there's a way to still do that with the new implementation for libraries that don't change much?

  3. rauchg commented on Dec 16, 2016

    @rauchg
    Member

    Absolutely. We'll never move away from ahead of time compilation of bundles, otherwise everything will become slow

  4. arunoda commented on Dec 17, 2016

    @arunoda
    ContributorAuthor

    @matthewmueller no it's not happening like that.
    But just how other apps works. It will send new modules over HMR.
    Anyway, if you still need a common bundle you could do it.
    Because you can do anything with the custom webpack setup.

  5. locked as resolved and limited conversation to collaborators on May 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions