marko 5.31.9 → 5.31.11

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.
@@ -20,6 +20,10 @@ module.exports = function defineRenderer(renderingLogic) {
20
20
  template = req(template);
21
21
  }
22
22
 
23
+ if (template && template.default) {
24
+ template = template.default;
25
+ }
26
+
23
27
  if (!renderer) {
24
28
  var getInitialProps;
25
29
  var getTemplateData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.31.9",
3
+ "version": "5.31.11",
4
4
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
5
5
  "keywords": [
6
6
  "front-end",
@@ -64,8 +64,8 @@
64
64
  "build": "babel ./src --out-dir ./dist --delete-dir-on-start --copy-files --config-file ../../babel.config.js --env-name=production"
65
65
  },
66
66
  "dependencies": {
67
- "@marko/compiler": "^5.33.1",
68
- "@marko/translator-default": "^5.31.2",
67
+ "@marko/compiler": "^5.33.2",
68
+ "@marko/translator-default": "^5.31.3",
69
69
  "app-module-path": "^2.2.0",
70
70
  "argly": "^1.2.0",
71
71
  "browser-refresh-client": "1.1.4",
@@ -20,6 +20,10 @@ module.exports = function defineRenderer(renderingLogic) {
20
20
  template = req(template);
21
21
  }
22
22
 
23
+ if (template && template.default) {
24
+ template = template.default;
25
+ }
26
+
23
27
  if (!renderer) {
24
28
  var getInitialProps;
25
29
  var getTemplateData;