Skip to content

Commit 22112e5

Browse files
committed
fix: ensure markoOpts accurate or child template analysis
1 parent e12aa2e commit 22112e5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/shiny-falcons-hear.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"marko": patch
3+
"@marko/runtime-tags": patch
4+
"@marko/compiler": patch
5+
---
6+
7+
Ensure markoOpts is always accurate when running child template analysis.

packages/compiler/src/babel-plugin/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ function getMarkoFile(code, fileOpts, markoOpts) {
184184
}
185185

186186
if (cached) {
187+
cached.file.markoOpts = markoOpts;
187188
return cached.file;
188189
}
189190

0 commit comments

Comments
 (0)