esbuild-plugin-metadata • Write entrypoints.json for esbuild builds.
Install
npm i @chialab/esbuild-plugin-metadata -D
yarn add @chialab/esbuild-plugin-metadata -D
Usage
import esbuild from 'esbuild';
import metadataPlugin from '@chialab/esbuild-plugin-metadata';
await esbuild.build({
plugins: [
metadataPlugin({
entrypoints: {
metafilePath: 'build/metafile.json',
manifestPath: 'build/manifest.json',
entrypointsPath: 'build/entrypoints.json',
},
}),
],
});
License
esbuild-plugin-metadata is released under the MIT license.