Skip to content

Commit

Permalink
fix: issue with resolving marko files in tag defs
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Dec 16, 2020
1 parent 83e6261 commit fa59cb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/transform/create-transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ const MARKO_OPTIONS = {
modules: "cjs"
};

// Allows for resolving `.marko` files during compilation.
if (!(".marko" in require.extensions)) {
(require.extensions as any)[".marko"] = undefined;
}

export = ({ browser }: { browser: boolean }) =>
({
getCacheKey(fileData, filename, configString, { instrument, rootDir }) {
Expand Down

0 comments on commit fa59cb1

Please sign in to comment.