@marko/compiler 5.39.38 → 5.39.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -184,6 +184,7 @@ function getMarkoFile(code, fileOpts, markoOpts) {
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
if (cached) {
|
|
187
|
+
cached.file.markoOpts = markoOpts;
|
|
187
188
|
return cached.file;
|
|
188
189
|
}
|
|
189
190
|
|
|
@@ -223,6 +224,7 @@ function getMarkoFile(code, fileOpts, markoOpts) {
|
|
|
223
224
|
};
|
|
224
225
|
|
|
225
226
|
(0, _parser.parseMarko)(file);
|
|
227
|
+
file.path.scope.crawl(); // Initialize bindings.
|
|
226
228
|
|
|
227
229
|
if (isSource) {
|
|
228
230
|
if (markoOpts.stripTypes) {
|
|
@@ -231,8 +233,6 @@ function getMarkoFile(code, fileOpts, markoOpts) {
|
|
|
231
233
|
return file;
|
|
232
234
|
}
|
|
233
235
|
|
|
234
|
-
file.path.scope.crawl(); // Initialize bindings.
|
|
235
|
-
|
|
236
236
|
const rootMigrators = [];
|
|
237
237
|
for (const id in taglibLookup.taglibsById) {
|
|
238
238
|
for (const migrator of taglibLookup.taglibsById[id].migrators) {
|
|
@@ -127,6 +127,9 @@ function importStar(file, request, nameHint) {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
function getImports(file) {
|
|
130
|
+
if (file.___compileStage !== "translate") {
|
|
131
|
+
throw new Error("Unable to add an import outside of translate");
|
|
132
|
+
}
|
|
130
133
|
let imports = file.metadata.marko[IMPORTS_KEY];
|
|
131
134
|
|
|
132
135
|
if (!imports) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/compiler",
|
|
3
|
-
"version": "5.39.
|
|
3
|
+
"version": "5.39.40",
|
|
4
4
|
"description": "Marko template to JS compiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"babel",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"source-map-support": "^0.5.21"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"marko": "^5.37.
|
|
90
|
+
"marko": "^5.37.60"
|
|
91
91
|
},
|
|
92
92
|
"engines": {
|
|
93
93
|
"node": "18 || 20 || >=22"
|