@marko/compiler 5.27.5 → 5.27.7
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.
|
@@ -118,6 +118,12 @@ const SOURCE_FILES = new WeakMap();var _default =
|
|
|
118
118
|
visitor:
|
|
119
119
|
markoOpts.stripTypes && isMarkoOutput(markoOpts.output) ?
|
|
120
120
|
{
|
|
121
|
+
MarkoClass(path) {
|
|
122
|
+
// We replace the MarkoClass with a regular class declaration so babel can strip it's types.
|
|
123
|
+
path.replaceWith(
|
|
124
|
+
t.classDeclaration(t.identifier(""), null, path.node.body));
|
|
125
|
+
|
|
126
|
+
},
|
|
121
127
|
ExportNamedDeclaration: {
|
|
122
128
|
exit(path) {
|
|
123
129
|
// The babel typescript plugin will add an empty export declaration
|
|
@@ -159,9 +165,10 @@ function getMarkoFile(code, fileOpts, markoOpts) {
|
|
|
159
165
|
let mtime = Infinity;
|
|
160
166
|
try {
|
|
161
167
|
mtime = markoOpts.fileSystem.statSync(watchFile).mtime;
|
|
162
|
-
|
|
163
|
-
} catch {}
|
|
168
|
+
} catch {
|
|
164
169
|
|
|
170
|
+
// ignore
|
|
171
|
+
}
|
|
165
172
|
if (mtime > cached.time) {
|
|
166
173
|
// Some dependency changed, invalidate the cache.
|
|
167
174
|
cached = undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/compiler",
|
|
3
3
|
"description": "Marko template to JS compiler.",
|
|
4
|
-
"version": "5.27.
|
|
4
|
+
"version": "5.27.7",
|
|
5
5
|
"author": "Dylan Piercey <dpiercey@ebay.com>",
|
|
6
6
|
"bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md",
|
|
7
7
|
"dependencies": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"strip-json-comments": "^3.1.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@marko/translator-default": "^5.25.
|
|
32
|
+
"@marko/translator-default": "^5.25.7"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"dist",
|