Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

asto

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asto

A tiny typescript/javascript package bundler.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 12 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts