Releases: web-tool-kit/libwiz
Releases · web-tool-kit/libwiz
v1.0.0
🚀 libwiz v1.0.0
This is the first major release of libwiz, bringing a more stable, framework-agnostic build system with a simplified configuration model, stronger type support, and new CLI features.
✨ What’s New
- New CLI Commands
libwiz init– bootstrap a configlibwiz types– generate.d.tsfileslibwiz types --check– type-check only, no emit
- Framework-Agnostic by Default
- React is no longer assumed, add
@babel/preset-reactif needed
- React is no longer assumed, add
- Config Model Overhaul
- Unified
outputblock (dir,target,comments,sourceMap) - Per-format overrides under
lib.esm/lib.cjs compilernow accepts static object or function for advanced configs
- Unified
- Simplified Defaults
- Focus on
@babel/core,@babel/preset-env,@babel/preset-typescript - Explicit React support documented separately
- Focus on
💥 Breaking Changes
- Targets renamed
modern→esmcommon→cjs
- Config
buildPath→output.dir
- Flags
- Removed:
--prebuild,--verbose - Added:
--progress,--quiet
- Removed:
- React preset not included by default (must be added manually)
🛠 Migration Guide (from v0.0.2)
- Update build targets:
modern→esm,common→cjs - Replace
buildPathwithoutput.dir - Install React preset if needed:
npm i -D @babel/preset-react
// libwiz.config.js module.exports = { compiler: { presets: [['@babel/preset-react', { runtime: 'automatic' }]], }, }
- Remove usage of
--prebuildand--verbose - For types:
libwiz build --types # emit .d.ts libwiz types --check # check types only
📦 Other Improvements
- Dependency cleanup (14 → 11)
- Documentation updated with React add-on guide