esbuild-plugin-noexternal
v0.1.6
Published
Externalize all packages except the ones passed to this plugin
Downloads
3,342
Readme
esbuild-plugin-noexternal
Will mark all npm packages as "external", except the ones passed to this plugin. Kinda like Vite's noExternal
option.
npm i -D esbuild-plugin-noexternal
import esbuild from 'esbuild';
import externalizeAllPackagesExcept from 'esbuild-plugin-noexternal';
esbuild.build({
// ...
bundle: true,
plugins: [externalizeAllPackagesExcept(['nanoid', 'slash' /*...*/])],
});