@@ -32,6 +32,22 @@ const archiveEscapePlugin: Plugin = {
3232 } ,
3333}
3434
35+ const HTML5_ELEMENTS = new Set ( [
36+ 'a' , 'abbr' , 'address' , 'area' , 'article' , 'aside' , 'audio' , 'b' , 'base' ,
37+ 'bdi' , 'bdo' , 'blockquote' , 'body' , 'br' , 'button' , 'canvas' , 'caption' ,
38+ 'cite' , 'code' , 'col' , 'colgroup' , 'data' , 'datalist' , 'dd' , 'del' ,
39+ 'details' , 'dfn' , 'dialog' , 'div' , 'dl' , 'dt' , 'em' , 'embed' , 'fieldset' ,
40+ 'figcaption' , 'figure' , 'footer' , 'form' , 'h1' , 'h2' , 'h3' , 'h4' , 'h5' ,
41+ 'h6' , 'head' , 'header' , 'hgroup' , 'hr' , 'html' , 'i' , 'iframe' , 'img' ,
42+ 'input' , 'ins' , 'kbd' , 'label' , 'legend' , 'li' , 'link' , 'main' , 'map' ,
43+ 'mark' , 'menu' , 'meta' , 'meter' , 'nav' , 'noscript' , 'object' , 'ol' ,
44+ 'optgroup' , 'option' , 'output' , 'p' , 'picture' , 'pre' , 'progress' , 'q' ,
45+ 'rp' , 'rt' , 'ruby' , 's' , 'samp' , 'script' , 'search' , 'section' , 'select' ,
46+ 'slot' , 'small' , 'source' , 'span' , 'strong' , 'style' , 'sub' , 'summary' ,
47+ 'sup' , 'table' , 'tbody' , 'td' , 'template' , 'textarea' , 'tfoot' , 'th' ,
48+ 'thead' , 'time' , 'title' , 'tr' , 'track' , 'u' , 'ul' , 'var' , 'video' , 'wbr' ,
49+ ] )
50+
3551export default defineConfig ( {
3652 title : 'sap-devs' ,
3753 description : 'SAP developer knowledge, injected into your AI coding tools' ,
@@ -55,22 +71,7 @@ export default defineConfig({
5571 compilerOptions : {
5672 isCustomElement : ( tag ) => {
5773 if ( ! / ^ [ a - z ] [ a - z 0 - 9 ] * ( - [ a - z 0 - 9 ] + ) * $ / . test ( tag ) ) return false
58- const html5 = new Set ( [
59- 'a' , 'abbr' , 'address' , 'area' , 'article' , 'aside' , 'audio' , 'b' , 'base' ,
60- 'bdi' , 'bdo' , 'blockquote' , 'body' , 'br' , 'button' , 'canvas' , 'caption' ,
61- 'cite' , 'code' , 'col' , 'colgroup' , 'data' , 'datalist' , 'dd' , 'del' ,
62- 'details' , 'dfn' , 'dialog' , 'div' , 'dl' , 'dt' , 'em' , 'embed' , 'fieldset' ,
63- 'figcaption' , 'figure' , 'footer' , 'form' , 'h1' , 'h2' , 'h3' , 'h4' , 'h5' ,
64- 'h6' , 'head' , 'header' , 'hgroup' , 'hr' , 'html' , 'i' , 'iframe' , 'img' ,
65- 'input' , 'ins' , 'kbd' , 'label' , 'legend' , 'li' , 'link' , 'main' , 'map' ,
66- 'mark' , 'menu' , 'meta' , 'meter' , 'nav' , 'noscript' , 'object' , 'ol' ,
67- 'optgroup' , 'option' , 'output' , 'p' , 'picture' , 'pre' , 'progress' , 'q' ,
68- 'rp' , 'rt' , 'ruby' , 's' , 'samp' , 'script' , 'search' , 'section' , 'select' ,
69- 'slot' , 'small' , 'source' , 'span' , 'strong' , 'style' , 'sub' , 'summary' ,
70- 'sup' , 'table' , 'tbody' , 'td' , 'template' , 'textarea' , 'tfoot' , 'th' ,
71- 'thead' , 'time' , 'title' , 'tr' , 'track' , 'u' , 'ul' , 'var' , 'video' , 'wbr' ,
72- ] )
73- return ! html5 . has ( tag )
74+ return ! HTML5_ELEMENTS . has ( tag )
7475 } ,
7576 } ,
7677 } ,
0 commit comments