@utoo/web
v1.3.2
Published
> π Web-compatible version of the Utoo toolchain, powered by [Turbopack](https://turbo.build/pack) and WebAssembly.
Readme
@utoo/web
π Web-compatible version of the Utoo toolchain, powered by Turbopack and WebAssembly.
@utoo/web brings the power of the Utoo bundler to the browser, leveraging WebAssembly to provide high-performance bundling in non-native environments. It enables a complete web development environment, including a real file system and dependency management, entirely within the browser.
β¨ Features
- π Real File System: Uses Origin Private File System (OPFS) for a Node.js-like file system experience.
- π¦ Browser Dependency Resolution: Resolve dependencies directly from
package.jsonwithout needing a pre-existing lock file. Supports custom registries (npm, npmmirror, private registries). - π Browser-based Bundling: Run the Utoo bundler directly in the browser.
- οΏ½ Hot Module Replacement (HMR): Full HMR support in the browser via MessagePort communication with preview iframes.
- οΏ½π Webpack Compatibility: Supports a subset of Webpack configurations in the browser. See Features List for details.
- π Webpack Loaders: Compatible with standard Webpack loaders (css-loader, style-loader, etc.).
- π¨ PostCSS & Tailwind: Support for PostCSS and Tailwind CSS processing.
π¦ Installation
npm install @utoo/webπ οΈ Development
Prerequisites
- Rust toolchain (nightly)
wasm-bindgen-clibinaryen(forwasm-opt)
Build
# Install toolchain
npm run install-toolchain
# Build WASM and TypeScript
npm run buildRun Demo
To run the web demo:
npm start -w utooweb-demoπ Documentation
For detailed API usage and examples, please refer to the API Documentation (δΈζη).
