0.0.4 • Published 3 years ago
elderjs-esbuild v0.0.4
Elder.js esbuild
This is a tool I'm using on my own projects. It will change, it will break, I may even abandon it, use it at your own risk.
In your elder.js project:
npm i --save elderjs-esbuild
- create bundle.js with
require('elderjs-esbuild').default();
node bundle.js
todo:
- hashed components (esbuild is tracking)
- look at adding an additional export with
_css
to see if we can matchElder.js
's current output. (basically impossible with current api) - clean folder on initial build.
- remove dependencies/css on deletion of a svelte file.
- move css to a cache with sourcemaps instead of reading them from the file.
- modules with exported svelte files.
- rebundle the entire dependency tree on sub module change. (elder.js plugins with templates can use this same pattern.)
- clean up memory of caches.
- basic preprocess support....
- make sure that the css file is emitted to the right folder.