marko 6.2.1 → 6.2.2
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.
- package/dist/translator/index.js +1 -1
- package/package.json +1 -1
package/dist/translator/index.js
CHANGED
|
@@ -3834,7 +3834,7 @@ var html_default = { translate: {
|
|
|
3834
3834
|
else child.replaceWithMultiple(child.node.body);
|
|
3835
3835
|
const contentId = usedSharedUid("content") && getTemplateContentName();
|
|
3836
3836
|
const contentFn = _marko_compiler.types.arrowFunctionExpression([_marko_compiler.types.identifier("input")], _marko_compiler.types.blockStatement(renderContent));
|
|
3837
|
-
const exportDefault = _marko_compiler.types.exportDefaultDeclaration(callRuntime("_template", _marko_compiler.types.stringLiteral(program.hub.file.metadata.marko.id), contentId ? _marko_compiler.types.identifier(contentId) : contentFn, program.node.extra.page ? _marko_compiler.types.numericLiteral(1) : void 0));
|
|
3837
|
+
const exportDefault = _marko_compiler.types.exportDefaultDeclaration(callRuntime("_template", _marko_compiler.types.stringLiteral(program.hub.file.metadata.marko.id), contentId ? _marko_compiler.types.identifier(contentId) : contentFn, program.node.extra.page || !getMarkoOpts().linkAssets ? _marko_compiler.types.numericLiteral(1) : void 0));
|
|
3838
3838
|
if (contentId) program.node.body.push(_marko_compiler.types.variableDeclaration("const", [_marko_compiler.types.variableDeclarator(_marko_compiler.types.identifier(contentId), contentFn)]), exportDefault);
|
|
3839
3839
|
else program.node.body.push(exportDefault);
|
|
3840
3840
|
}
|