@marko/compiler 5.21.6 → 5.21.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.
@@ -334,7 +334,11 @@ function parseMarko(file) {
334
334
  `${parser.read(part.params)}=>{}`,
335
335
  part.params.start).
336
336
  params,
337
- (0, _babelUtils.parseScript)(file, parser.read(part.body), part.body.start).body[0]),
337
+ (0, _babelUtils.parseExpression)(
338
+ file,
339
+ `()=>${parser.read(part.body)}`,
340
+ part.params.start + "()=>".length).
341
+ body),
338
342
 
339
343
  part);
340
344
 
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.21.6",
4
+ "version": "5.21.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": {
@@ -28,7 +28,7 @@
28
28
  "strip-json-comments": "^3.1.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@marko/translator-default": "^5.21.1"
31
+ "@marko/translator-default": "^5.21.3"
32
32
  },
33
33
  "files": [
34
34
  "dist",