UNPKG

marko

Version:

UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.

27 lines (19 loc) 813 B
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.default = _default;var _babelUtils = require("@marko/compiler/babel-utils"); var _nativeTagHtml = _interopRequireDefault(require("./native-tag[html]")); var _nativeTagVdom = _interopRequireDefault(require("./native-tag[vdom]")); function _default(path, isNullable) { const { hub: { file } } = path; const { markoOpts } = file; if (!markoOpts.ignoreUnrecognizedTags) { (0, _babelUtils.assertNoArgs)(path); (0, _babelUtils.assertNoParams)(path); (0, _babelUtils.assertNoAttributeTags)(path); } if (markoOpts.output === "html") { (0, _nativeTagHtml.default)(path, isNullable); } else { (0, _nativeTagVdom.default)(path, isNullable); } }