chore: rename evaluate server script function
This commit is contained in:
parent
dfee34b7eb
commit
892bf45671
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ export function useMcFlyRoute({ config, storage }) {
|
||||||
let html = await getHtml(path, storage)
|
let html = await getHtml(path, storage)
|
||||||
|
|
||||||
if (html) {
|
if (html) {
|
||||||
const transforms = [doSetUp, deleteServerScripts]
|
const transforms = [evaluateServerScript, deleteServerScripts]
|
||||||
|
|
||||||
for (const transform of transforms) {
|
for (const transform of transforms) {
|
||||||
html = transform(html.toString())
|
html = transform(html.toString())
|
||||||
|
@ -189,7 +189,7 @@ function isConstructor(f) {
|
||||||
* @param {string} html
|
* @param {string} html
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
function doSetUp(html) {
|
function evaluateServerScript(html) {
|
||||||
const ast = parse(html)
|
const ast = parse(html)
|
||||||
const serverScripts = []
|
const serverScripts = []
|
||||||
walkSync(ast, (node) => {
|
walkSync(ast, (node) => {
|
||||||
|
|
Loading…
Reference in a new issue