> π Web-compatible version of the Utoo toolchain, powered by [Turbopack](https://turbo.build/pack) and WebAssembly.
npm install @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.
- π 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.json without 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.
``bash`
npm install @utoo/web
- Rust toolchain (nightly)
- wasm-bindgen-clibinaryen
- (for wasm-opt)
`bashInstall toolchain
npm run install-toolchain
$3
To run the web demo:
`bash
npm start -w utooweb-demo
``For detailed API usage and examples, please refer to the API Documentation (δΈζη).