@marko/compiler 5.39.39 → 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.
|
@@ -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"
|