mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 20:49:01 +01:00
chore(share): enable code splitting
This commit is contained in:
parent
6ae67c410c
commit
b9a4e7ab11
@ -1,4 +1,3 @@
|
|||||||
import fs from "node:fs";
|
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
// import {fileURLToPath} from "node:url";
|
// import {fileURLToPath} from "node:url";
|
||||||
|
|
||||||
@ -51,8 +50,9 @@ async function runBuild() {
|
|||||||
await esbuild.build({
|
await esbuild.build({
|
||||||
entryPoints: entryPoints,
|
entryPoints: entryPoints,
|
||||||
bundle: true,
|
bundle: true,
|
||||||
|
splitting: true,
|
||||||
outdir: path.join(rootDir, "dist"),
|
outdir: path.join(rootDir, "dist"),
|
||||||
format: "cjs",
|
format: "esm",
|
||||||
target: ["chrome96"],
|
target: ["chrome96"],
|
||||||
loader: {
|
loader: {
|
||||||
".png": "dataurl",
|
".png": "dataurl",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user