@chronocide/esbuild-plugin-spider
v0.2.1
Published
<div align="center"> <h1>@chronocide/esbuild-plugin-spider</h1> <p><a href="https://github.com/chronoDave/spider"><code>spider</code></a> plugin for <a href="https://esbuild.github.io/">esbuild</a>.</p> </div>
Downloads
31
Readme
Installation
Install using npm:
npm i @chronocide/esbuild-plugin-spider -D
Usage
As spider
transforms and writes files, the following esbuild
options will always be overriden:
write
: As spider sets output locations, write must be disabledmetafile
: Metafile must be enabled to get a reference to the source fileformat
: Spider only supportsesm
bundle
: Files must be bundled
import esbuild from 'esbuild';
import spider from '@chronocide/esbuild-plugin-spider';
esbuild.build({
entryPoints: ['tmp/**/*.ts'],
outdir: 'dist',
plugins: [spider()]
});