asto
v0.1.0
Published
A tiny typescript/javascript package bundler.
Downloads
83
Readme
Asto
A tiny typescript/javascript package bundler.
- 📦 typescript supported
- 🛠️ Extendable Loader
- 🔥 very tiny (9kb)
$ npm i --save-dev asto
Usage
const { asto } = require('asto');
asto({
entryPoints: [
'src/index.ts',
{
input: 'assets',
output: 'dist/assets',
builder: 'asset',
},
],
});
Watch
You can build whenever a file changes with the watch option.
const { watch } = require('asto');
watch(
{
entryPoints: [
/* ... */
],
},
{
/* watch options */
}
);
Webpack Loader
Asto's default loader is esbuild, but you can increase stability further with the webpack loader.
$ npm i --save-dev @asto/webpack webpack
const { asto } = require('asto');
const { webpackLoader } = require('@asto/webpack');
asto({
loader: webpackLoader(
{
typescript: true, // for typescript
nodeExternals: true,
},
{
/* webpack options */
}
),
entryPoints: ['src/index.ts'],
});
License
MIT