@pob/esbuild

3.0.0 • Public • Published

@pob/esbuild

esbuild configuration for pob

Install

npm install --save rollup-typescript

Usage

import { dirname } from "node:path";
import { fileURLToPath } from "node:url";
import createRollupConfig from "@pob/rollup-typescript/createRollupConfig.js";
import run from "@pob/rollup-typescript/plugin-run.cjs";

const watch = process.env.ROLLUP_WATCH === "true";

export default createRollupConfig({
  cwd: dirname(fileURLToPath(import.meta.url)),
  outDirectory: "build",
  plugins: [watch && run({ execArgv: ["--enable-source-maps"] })],
});

Readme

Keywords

none

Package Sidebar

Install

npm i @pob/esbuild

Weekly Downloads

22

Version

3.0.0

License

MIT

Unpacked Size

14.3 kB

Total Files

9

Last publish

Collaborators

  • churpeau