Skip to content

Commit

Permalink
Merge ff31d14 into 94992f2
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Apr 5, 2021
2 parents 94992f2 + ff31d14 commit 9dab986
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/compiler/src/taglib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import loader from "./loader";
import finder from "./finder";
import Lookup from "./lookup";
import tryLoadTranslator from "../util/try-load-translator";

export const excludeDir = finder.excludeDir;
export const excludePackage = finder.excludePackage;
Expand All @@ -13,7 +14,8 @@ register(require.resolve("./marko-html.json"), require("./marko-html.json"));
register(require.resolve("./marko-svg.json"), require("./marko-svg.json"));
register(require.resolve("./marko-math.json"), require("./marko-math.json"));

export function buildLookup(dirname, translator) {
export function buildLookup(dirname, requestedTranslator) {
const translator = tryLoadTranslator(requestedTranslator);
if (!translator || !Array.isArray(translator.taglibs)) {
throw new Error(
"@marko/compiler: Invalid translator provided to buildLookup(dir, translator)"
Expand Down

0 comments on commit 9dab986

Please sign in to comment.