1.0.0 • Published 1 year ago

esbuild-plugin-external-package v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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],
});