Skip to content

Commit

Permalink
fix total size calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Sep 8, 2024
1 parent ed6eb66 commit 57a6d3c
Show file tree
Hide file tree
Showing 14 changed files with 2,343 additions and 34 deletions.
27 changes: 27 additions & 0 deletions __tests__/__fixtures__/issues/issue-90/esbuild.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { writeFileSync } from "node:fs";
import { build } from "esbuild";
import metaUrlPlugin from '@chialab/esbuild-plugin-meta-url';

const result = await build({
entryPoints: [
`./src/no-change.ts`,
`./src/bit-increased.ts`,
`./src/much-increased.ts`,
`./src/decreased.ts`,
`./src/new-outfile.ts`,
`./src/file-imported.ts`,
],
outdir: `out`,
format: "esm",
metafile: true,
mainFields: ["module", "main"],
platform: "node",
target: "node20.9",
bundle: true,
plugins: [
metaUrlPlugin(),
],
sourcemap: true,
});

writeFileSync(`out/meta.json`, JSON.stringify(result.metafile, null, 2));
Loading

0 comments on commit 57a6d3c

Please sign in to comment.