@marko/compiler 5.34.4 → 5.34.5
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.
|
@@ -132,11 +132,13 @@ const SOURCE_FILES = new WeakMap();var _default =
|
|
|
132
132
|
},
|
|
133
133
|
ExportNamedDeclaration: {
|
|
134
134
|
exit(path) {
|
|
135
|
+
const { node } = path;
|
|
135
136
|
// The babel typescript plugin will add an empty export declaration
|
|
136
137
|
// if there are no other imports/exports in the file.
|
|
137
138
|
// This is not needed for Marko file outputs since there is always
|
|
138
139
|
// a default export.
|
|
139
|
-
if (
|
|
140
|
+
if (!(node.declaration || node.specifiers.length))
|
|
141
|
+
path.remove();
|
|
140
142
|
}
|
|
141
143
|
}
|
|
142
144
|
} :
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/compiler",
|
|
3
|
-
"version": "5.34.
|
|
3
|
+
"version": "5.34.5",
|
|
4
4
|
"description": "Marko template to JS compiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"babel",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"source-map-support": "^0.5.21"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@marko/translator-default": "^5.31.
|
|
63
|
+
"@marko/translator-default": "^5.31.12"
|
|
64
64
|
},
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|