yamitsushi / esbuild-plugin-external-package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:JavaScript 100.0%