Skip to content

Commit

Permalink
fix: improve support for @lasso/marko-taglib and @marko/compiler/regi…
Browse files Browse the repository at this point in the history
…ster (#1853)
  • Loading branch information
DylanPiercey authored Sep 27, 2022
1 parent 86ae401 commit 7677159
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-rice-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marko/compiler": patch
---

Enable the meta option for the compiler when @marko/compiler/register is used. This makes usage with lasso easier.
7 changes: 5 additions & 2 deletions packages/compiler/src/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ function register({ extensions = require.extensions, ...options } = {}) {
compiler.compileFileSync(
filename,
Object.assign(
// eslint-disable-next-line no-constant-condition
{ sourceMaps: "MARKO_DEBUG" ? "inline" : false },
{
meta: true,
// eslint-disable-next-line no-constant-condition
sourceMaps: "MARKO_DEBUG" ? "inline" : false
},
options,
requiredOptions
)
Expand Down

0 comments on commit 7677159

Please # to comment.