A plugin to resolve package names to Skypack CDN URLs.
npm install --save-dev esbuild-skypack-resolver
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));
Type: string
Default: ${process.cwd()}/package-lock.json
File path to the package lock file used to determine which dependencies to resolve.