@pob/esbuild

1.0.1 • 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

84

Version

1.0.1

License

MIT

Unpacked Size

6.27 kB

Total Files

10

Last publish

Collaborators

  • churpeau