0.0.4 • Published 3 years ago

elderjs-esbuild v0.0.4

Weekly downloads
13
License
NONE
Repository
-
Last release
3 years ago

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:

  1. npm i --save elderjs-esbuild
  2. create bundle.js with require('elderjs-esbuild').default();
  3. node bundle.js

todo:

  • hashed components (esbuild is tracking)
  • look at adding an additional export with _css to see if we can match Elder.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.