Queries
parent
dfd820cc25
commit
7429a96e61
|
@ -41,7 +41,8 @@ async function bundle(
|
||||||
filePath,
|
filePath,
|
||||||
jsFunctionName,
|
jsFunctionName,
|
||||||
debug,
|
debug,
|
||||||
allModulesToExclude
|
allModulesToExclude,
|
||||||
|
true
|
||||||
);
|
);
|
||||||
delete def.path;
|
delete def.path;
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ export async function compile(
|
||||||
|
|
||||||
if (meta) {
|
if (meta) {
|
||||||
let text = await esbuild.analyzeMetafile(result.metafile);
|
let text = await esbuild.analyzeMetafile(result.metafile);
|
||||||
// console.log("Bundle info for", functionName, text);
|
console.log("Bundle info for", functionName, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
let jsCode = (await readFile(outFile)).toString();
|
let jsCode = (await readFile(outFile)).toString();
|
||||||
|
|
|
@ -16,12 +16,11 @@ import { replaceTemplateVars } from "../core/template";
|
||||||
import { jsonToMDTable, queryRegex, removeQueries } from "./util";
|
import { jsonToMDTable, queryRegex, removeQueries } from "./util";
|
||||||
import { dispatch } from "@plugos/plugos-syscall/event";
|
import { dispatch } from "@plugos/plugos-syscall/event";
|
||||||
import { replaceAsync } from "../lib/util";
|
import { replaceAsync } from "../lib/util";
|
||||||
import { parseMarkdown } from "@silverbulletmd/plugos-silverbullet-syscall/markdown";
|
|
||||||
|
|
||||||
export async function updateMaterializedQueriesCommand() {
|
export async function updateMaterializedQueriesCommand() {
|
||||||
const currentPage = await getCurrentPage();
|
const currentPage = await getCurrentPage();
|
||||||
await save();
|
await save();
|
||||||
await flashNotification("Updating materialized queries...");
|
// await flashNotification("Updating materialized queries...");
|
||||||
if (
|
if (
|
||||||
await invokeFunction(
|
await invokeFunction(
|
||||||
"server",
|
"server",
|
||||||
|
|
Loading…
Reference in New Issue