chore(share): enable code splitting

This commit is contained in:
Elian Doran 2025-10-24 20:52:54 +03:00
parent 6ae67c410c
commit b9a4e7ab11
No known key found for this signature in database

View File

@ -1,4 +1,3 @@
import fs from "node:fs";
import path from "node:path";
// import {fileURLToPath} from "node:url";
@ -51,8 +50,9 @@ async function runBuild() {
await esbuild.build({
entryPoints: entryPoints,
bundle: true,
splitting: true,
outdir: path.join(rootDir, "dist"),
format: "cjs",
format: "esm",
target: ["chrome96"],
loader: {
".png": "dataurl",