-
Notifications
You must be signed in to change notification settings - Fork 298
#943 - Split bundle via async imports #1123
Conversation
There may be some duplication across bundles - should look at incorporating the CommonChunksPlugin as well. |
@bryphe may or may not be relevant to what your trying to do here or potentially a rabbit hole, though seemed worth mentioning a new |
Ah ya, interesting! It does look easy and straightforward. I'm wondering too if we can just avoid making bundles altogether - just point Electron to the output |
There’s also electron-link that might help with improving startup time.
|
Thanks for the pointer, @bruchmann ! We're tracking leveraging v8 snapshots in #381 , just added some context there - |
This is the first part of an improvement in startup time. Today, we need the browser to load the entire large
bundle.js
before it can start rendering.This change leverages the async
import
functionality, along with webpack's ability to chunk along the async boundaries, such that we can kick start some operations and parallelize the loading.This is a first step, but helps to improve loading.