@es-exec/esbuild-plugin-serve
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

ES Serve

An esbuild plugin for running a module after it is build with esbuild. This project will find the output module to run after being built from the esbuild outputs, or it can run a specified main file.

Installation

npm

npm install --save-dev @es-exec/esbuild-plugin-serve

yarn

yarn add --dev @es-exec/esbuild-plugin-serve

Usage

import serve from '@es-exec/esbuild-plugin-serve';

/** @type import('@es-exec/esbuild-plugin-serve').ESServeOptions */
const options = {
    main: 'build/index.mjs' // The module to run after the project is built. If not specified, will run the build outputs.
};

export default {
    ..., // Other esbuild config options.
    plugins: [serve(options)],
};

Package Sidebar

Install

npm i @es-exec/esbuild-plugin-serve

Weekly Downloads

5,922

Version

0.0.5

License

MIT

Unpacked Size

23 kB

Total Files

10

Last publish

Collaborators

  • tim-timsexperiments
  • tim117