From 0c92d2bb3efecbd47dd3a5b4c97d7874b6999a03 Mon Sep 17 00:00:00 2001 From: Nikolay Kostyurin Date: Sun, 17 Oct 2021 21:31:21 +0200 Subject: [PATCH] fix: remove useless optimizations --- packages/bbob-preset-html5/src/defaultTags.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/bbob-preset-html5/src/defaultTags.js b/packages/bbob-preset-html5/src/defaultTags.js index 4f5c7d9..7258d5c 100644 --- a/packages/bbob-preset-html5/src/defaultTags.js +++ b/packages/bbob-preset-html5/src/defaultTags.js @@ -2,14 +2,14 @@ import { getUniqAttr, isStringNode, isTagNode } from '@bbob/plugin-helper/lib/index'; import TagNode from '@bbob/plugin-helper/lib/TagNode'; -/* @__PURE__ */const isStartsWith = (node, type) => (node[0] === type); +const isStartsWith = (node, type) => (node[0] === type); const styleMap = { color: (val) => `color:${val};`, size: (val) => `font-size:${val};`, }; -/* @__PURE__ */const getStyleFromAttrs = (attrs) => Object +const getStyleFromAttrs = (attrs) => Object .keys(attrs) .reduce((acc, key) => (styleMap[key] ? acc.concat(styleMap[key](attrs[key])) : acc), []) .join(' '); @@ -59,13 +59,13 @@ const renderUrl = (node, render) => (getUniqAttr(node.attrs) ? getUniqAttr(node.attrs) : render(node.content)); -/* @__PURE__ */const toNode = (tag, attrs, content) => ({ +const toNode = (tag, attrs, content) => ({ tag, attrs, content, }); -/* @__PURE__ */const toStyle = (style) => ({ style }); +const toStyle = (style) => ({ style }); export default { b: (node) => toNode('span', toStyle('font-weight: bold;'), node.content),