Page MenuHomeSealhub

build.js
No OneTemporary

build.js

import * as esbuild from "esbuild";
import { default as glob } from "tiny-glob";
// commented out as it seemingly works without that
// import { remove_named_imports } from "./remove-named-imports.js";
const entryPoints = (await glob("./src/**/*.{js,ts,tsx}")).filter(
(path) => !path.includes(".#")
);
const args = {
entryPoints,
sourcemap: true,
bundle: false,
outdir: "./lib/",
logLevel: "info",
platform: "node",
target: "es2022",
format: "esm",
// plugins: [remove_named_imports],
};
if (process.argv.includes("--watch")) {
const context = await esbuild.context(args);
context.watch();
} else {
esbuild.build(args);
}

File Metadata

Mime Type
text/x-java
Expires
Tue, Dec 24, 14:02 (16 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556533
Default Alt Text
build.js (639 B)

Event Timeline