Dead code elimination

pull/197/head
Zef Hemel 2022-12-15 12:59:38 +01:00
parent b6c0349203
commit d609daf59e
3 changed files with 3 additions and 11 deletions

View File

@ -1,10 +1,4 @@
import {
addParentPointers,
collectNodesMatching,
ParseTree,
renderToText,
replaceNodesMatching,
} from "$sb/lib/tree.ts";
import { ParseTree, renderToText, replaceNodesMatching } from "$sb/lib/tree.ts";
export const queryRegex =
/(<!--\s*#query\s+(.+?)-->)(.+?)(<!--\s*\/query\s*-->)/gs;

View File

@ -1,6 +1,4 @@
import { nodeAtPos, ParseTree, renderToText } from "$sb/lib/tree.ts";
import { replaceAsync } from "$sb/lib/util.ts";
import { markdown } from "$sb/silverbullet-syscall/mod.ts";
import { ParseTree, renderToText } from "$sb/lib/tree.ts";
import { evalDirectiveRenderer } from "./eval_directive.ts";
import { queryDirectiveRenderer } from "./query_directive.ts";

View File

@ -1,7 +1,7 @@
// This is some shocking stuff. My profession would kill me for this.
import * as YAML from "yaml";
import { ParseTree } from "../../plug-api/lib/tree.ts";
import { ParseTree } from "$sb/lib/tree.ts";
import { jsonToMDTable, renderTemplate } from "./util.ts";
// Enables plugName.functionName(arg1, arg2) syntax in JS expressions