Skip to Content
Docs@utoo/packOverview

@utoo/pack

High-performance build tool for the Utoo toolchain, powered by Turbopack .

@utoo/pack is the engine behind the Utoo build system. It leverages the incremental computation power of Turbopack and the performance of Rust to provide a lightning-fast development and build experience.

Key Features

  • Extreme Performance - Core bundling logic built with Rust
  • Turbopack Powered - Built on top of the same engine that powers Next.js Turbopack
  • Webpack Compatibility - Support for consuming webpack.config.js to simplify migration
  • Modern Web Support - Native support for TypeScript, JSX, CSS Modules, Less, Sass, and more
  • Extensible Architecture - Support for custom loaders, plugins, and flexible configuration
  • Fast HMR - Instant updates during development with optimized Hot Module Replacement

Continue with Quick Start to create a sample project and configure entry files.

Supported Features

@utoo/pack is highly compatible with the Webpack ecosystem while providing better performance.

CategorySupport
Entryname, import, and filename templates
Module RulesMost mainstream Webpack loaders via loader-runner
ResolveFull support for alias and extensions
StylesLess, Sass, PostCSS, CSS Modules
OptimizationCode minification, Tree Shaking, Module Concatenation
FrameworksReact (styled-jsx, emotion, styled-components)
ToolsBundle Analyzer, Tracing Logs

Configuration

The bundler can be configured via utoopack.json, utoopack.config.mjs, or the programmatic API.

OptionDescription
entryDefine your application entry points
outputOutput path, file naming, and asset copying
moduleCustom loaders and module rules
stylesLess, Sass, CSS Modules, Emotion, styled-components
optimizationMinification, tree shaking, split chunks, import transforms
devServerHost, port, HTTPS, HMR, proxy
defineBuild-time variable replacement
providerAuto-provide modules
externalsExclude specific dependencies from the bundle
resolveAliases and extension resolution
persistentCachingReuse cache across runs
modedevelopment or production
resolveModule resolution (alias, extensions)
moduleCustom loader rules
optimizationMinification, tree shaking, split chunks, and more
stylesLess, Sass, CSS Modules, Emotion, styled-components
devServerDev server (hot, port, host, https)
statsEnable build statistics output

See Configuration for full details.

Last updated on