Archived
1
0

Expose replaceTemplates to plugins

This is mainly so they can get relative paths in their HTML, in
particular code-server's static base so they can use the favicon and
service worker.
This commit is contained in:
Asher
2021-01-28 14:24:07 -06:00
parent 36aad9bdab
commit 22d194515a
2 changed files with 14 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import * as path from "path"
import * as semver from "semver"
import * as pluginapi from "../../typings/pluginapi"
import { version } from "./constants"
import { replaceTemplates } from "./http"
import { proxy } from "./proxy"
import * as util from "./util"
import { Router as WsRouter, WebsocketRouter, wss } from "./wsRouter"
@ -23,6 +24,7 @@ require("module")._load = function (request: string, parent: object, isMain: boo
field,
Level,
proxy,
replaceTemplates,
WsRouter,
wss,
}