Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 527 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 527 Bytes

esbuild-plugin-external-package

ESbuild plugin that sets all dependencies to external

Installation

npm install esbuild-plugin-external-package --save-dev
pnpm install esbuild-plugin-external-package --save-dev
yarn add esbuild-plugin-external-package --save-dev
import esbuild from "esbuild";
import externalPackage from "esbuild-plugin-external-package";

esbuild.build({
  entryPoints: ["./src/index.js"],
  bundle: true,
  outfile: "./dist/index.js",
  plugins: [externalPackage],
});