@wordpress/blocks
Version:
Block API for WordPress.
8 lines (7 loc) • 576 B
Source Map (JSON)
{
"version": 3,
"sources": ["../../../src/api/raw-handling/comment-remover.js"],
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { remove } from '@wordpress/dom';\n\n/**\n * Looks for comments, and removes them.\n *\n * @param {Node} node The node to be processed.\n * @return {void}\n */\nexport default function commentRemover( node ) {\n\tif ( node.nodeType === node.COMMENT_NODE ) {\n\t\tremove( node );\n\t}\n}\n"],
"mappings": ";AAGA,SAAS,cAAc;AAQR,SAAR,eAAiC,MAAO;AAC9C,MAAK,KAAK,aAAa,KAAK,cAAe;AAC1C,WAAQ,IAAK;AAAA,EACd;AACD;",
"names": []
}