Files
buuh/packages/html/browser.js
T

16 lines
546 B
JavaScript
Raw Normal View History

// Phase 2 (rendering core) lands here: a runtime-only tagged template that
// parses each template once (keyed by its strings array in a WeakMap) and
// instantiates DOM by cloning. No compile step, ever.
//
// Until then, importing @choojs/html in a browser build fails loudly rather
// than silently rendering nothing.
export default function html () {
throw new Error(
'@choojs/html: the browser renderer is not implemented yet (v8 Phase 2). ' +
'Server-side rendering via the "node" condition works today.'
)
}
export { html }