Asto is a minimalist JavaScript and TypeScript package bundler designed for small bundle sizes, claiming to be only 9kb. As of version `0.1.0`, it provides core bundling capabilities with built-in TypeScript support and an extendable loader architecture. It defaults to using `esbuild` for performance but also offers an optional Webpack loader for scenarios requiring more advanced or stable bundling features typically associated with Webpack. The package is currently in its very early stages of development, indicated by its `0.1.0` version, suggesting an active but potentially rapidly evolving API and feature set. Its primary differentiation lies in its small footprint and focus on simplicity, making it a lightweight alternative for projects that don't require the full complexity of larger bundlers. Release cadence is currently irregular given its early stage.
npm install astoVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to configure Asto with the optional Webpack loader for TypeScript projects, bundling multiple entry points and handling assets with specified Webpack options.
Pin Asto package versions exactly in your `package.json` (e.g., `'asto': '0.1.0'`) and review changelogs or GitHub commits carefully with each update. Consider delaying adoption for production systems requiring high stability.
Refer to Webpack's official documentation for advanced loader and plugin configurations. The `@asto/webpack` package provides a wrapper, but core Webpack knowledge is essential for complex setups.
Install the necessary packages as development dependencies: `npm install --save-dev @asto/webpack webpack`
Ensure your project's module system (CommonJS or ES Modules) aligns with how you import `asto`. For ES Modules, use `import { asto } from "asto"`. If using CommonJS, `const { asto } = require('asto')` should be correct.