0.1.0 • Published 2 months ago

asto v0.1.0

Weekly downloads
-
License
-
Repository
github
Last release
2 months ago

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

0.1.0

2 months ago

0.0.13

5 months ago

0.0.14

5 months ago

0.0.12

6 months ago

0.0.11

8 months ago

0.0.10

8 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago

0.0.0

9 months ago