mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Fix resvg not loading
This commit is contained in:
@@ -27,8 +27,8 @@ await (async () => {
|
|||||||
`;
|
`;
|
||||||
const banner = {
|
const banner = {
|
||||||
"js": ESM_REQUIRE_SHIM
|
"js": ESM_REQUIRE_SHIM
|
||||||
};
|
};
|
||||||
|
|
||||||
esbuild.build({
|
esbuild.build({
|
||||||
sourcemap: true, // Source map generation must be turned on
|
sourcemap: true, // Source map generation must be turned on
|
||||||
platform: "node", // Node.js platform
|
platform: "node", // Node.js platform
|
||||||
@@ -38,7 +38,7 @@ esbuild.build({
|
|||||||
bundle: true, // Generate an external bundle
|
bundle: true, // Generate an external bundle
|
||||||
format: "esm", // Output format
|
format: "esm", // Output format
|
||||||
loader: {
|
loader: {
|
||||||
".node": "file",
|
".node": "copy",
|
||||||
},
|
},
|
||||||
alias: {
|
alias: {
|
||||||
"perf_hooks": "node:perf_hooks",
|
"perf_hooks": "node:perf_hooks",
|
||||||
|
|||||||
Reference in New Issue
Block a user