import MagicString from 'magic-string' ; import { BaseNode } from '../../interfaces' ; /**
 * `<svelte:window>...</svelte:window>`   ---->    `<sveltewindow>...</sveltewindow>`
 * (same for :head, :body, :options, :fragment)
 */ export function handleSvelteTag ( htmlx , str , node ) { const colon = htmlx . indexOf ( ':' , node . start ) ; str . remove ( colon , colon + 1 ) ; const closeTag = htmlx . lastIndexOf ( '/' + node . name , node . end ) ; if ( closeTag > node . start ) { const colon = htmlx . indexOf ( ':' , closeTag ) ; str . remove ( colon , colon + 1 ) ; } }