UNPKG

@marko/build

Version:

Utility to serve Marko build a server from a template

15 lines (10 loc) 512 B
"use strict"; const { useAppModuleOrFallback } = require("./util"); const compiler = require(useAppModuleOrFallback(process.env.APP_DIR, "@marko/compiler")); const localComponentsPath = require.resolve("./components/marko.json"); const markoWebpackComponentsPath = require.resolve("@marko/webpack/marko.json"); compiler.taglib.register(localComponentsPath, require(localComponentsPath)); compiler.taglib.register(markoWebpackComponentsPath, require(markoWebpackComponentsPath)); module.exports = compiler;