Overview of @utoo/web features
nextThe @utoo/web package provides a high-performance bundling environment directly in the browser using WebAssembly and Turbopack. Key capabilities include:
- Real File System: Utilizes Origin Private File System (OPFS) to simulate a Node.js-like file system.
- Browser Dependency Resolution: Resolves dependencies from
package.jsonwithout requiring a lock file. Supports npm, npmmirror, and private registries. - Browser-based Bundling: Executes the Utoo bundler within the browser environment.
- Project Lifecycle Management: Provides a
dispose()method to cancel active installs or builds and safely switch projects. - Hot Module Replacement (HMR): Supports full HMR via MessagePort communication with preview iframes.
- Webpack Compatibility: Supports a subset of Webpack configurations and standard loaders like
css-loaderandstyle-loader. - CSS Processing: Built-in support for PostCSS and Tailwind CSS.