MCPcopy
hub / github.com/FullHuman/purgecss / createRollupConfig

Function createRollupConfig

scripts/build.ts:26–45  ·  view source on GitHub ↗
(
  packageName: string,
  external: RollupOptions["external"],
)

Source from the content-addressed store, hash-verified

24};
25
26export function createRollupConfig(
27 packageName: string,
28 external: RollupOptions["external"],
29): RollupOptions {
30 return {
31 ...rollupBaseConfig,
32 external,
33 output: [
34 {
35 file: `./lib/${packageName}.esm.js`,
36 format: "esm",
37 },
38 {
39 exports: "auto",
40 file: `./lib/${packageName}.js`,
41 format: "cjs",
42 },
43 ],
44 };
45}
46
47export async function buildRollup(rollupOptions: RollupOptions): Promise<void> {
48 const bundle = await rollup(rollupOptions);

Callers 10

build.tsFile · 0.90
build.tsFile · 0.90
build.tsFile · 0.90
build.tsFile · 0.90
build.tsFile · 0.90
build.tsFile · 0.90
build.tsFile · 0.90
build.tsFile · 0.90
build.tsFile · 0.90
build.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…