mirror of https://github.com/sveltejs/svelte
parent
4137491fd0
commit
6a733c8b37
@ -0,0 +1,10 @@
|
||||
import { DEV } from 'esm-env';
|
||||
import { hash } from '../dev.js';
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
*/
|
||||
export function html(value) {
|
||||
var open = DEV ? `<!--${hash(value)}-->` : '<!---->';
|
||||
return `${open}${value}<!---->`;
|
||||
}
|
||||
Loading…
Reference in new issue