htm
htm copied to clipboard
Ignore JS-style comments during parse
This PR enhances htm's parser to detect and ignore JS-style comments, similar to JSX.
// Multi line
html`<div
/* I'm ignored */
id="foo" />`
// Single line
html`<div
// I'm ignored
id="foo" />`
Fixes #213
Size Change: +248 B (+3%)
Total Size: 8.38 kB
| Filename | Size | Change | |
|---|---|---|---|
./dist/htm.js |
729 B | +51 B (+8%) | đ |
./dist/htm.mjs |
696 B | +50 B (+8%) | đ |
./mini/index.js |
577 B | +49 B (+9%) | đ |
./mini/index.mjs |
533 B | +50 B (+10%) | â ī¸ |
./preact/standalone.mjs |
5.35 kB | +48 B (+1%) |
âšī¸ View Unchanged
| Filename | Size |
|---|---|
./preact/index.js |
145 B |
./preact/index.mjs |
117 B |
./react/index.js |
128 B |
./react/index.mjs |
99 B |