alloc / cush

WIP module bundler 🎁
MIT License
0 stars 0 forks source link

Bundle sessions #24

Open aleclarson opened 5 years ago

aleclarson commented 5 years ago

In the ~/.cush/bundles directory, save a "session" for each bundle. The session contains the transformed source code and source map of every asset used in a bundle. When a bundle is created, the bundler looks for a saved session. Thanks to Watchman, the watcher will know when an asset has changed since the saved session. Those assets will be reloaded. If the cush.config.js module or any plugin-specific config module has changed, the session is unusable.