esbuild-skypack-resolver
v1.0.13
Published
A plugin to resolve package names to Skypack CDN URLs
Downloads
60
Maintainers
Readme
esbuild-skypack-resolver
A plugin to resolve package names to Skypack CDN URLs.
Installation
npm install --save-dev esbuild-skypack-resolver
Usage
import { build } from 'esbuild';
import { skypackResolver } from 'esbuild-skypack-resolver';
build({
entryPoints: ['app.js'],
bundle: true,
outfile: 'out.js',
plugins: [skypackResolver()],
}).catch(() => process.exit(1));
API
skypackResolver(packageLockFile?)
packageLockFile
Type: string
Default: ${process.cwd()}/package-lock.json
File path to the package lock file used to determine which dependencies to resolve.