Each template literal parses once, keyed by its strings array in a WeakMap: static parts become a <template> with hole markers, renders clone and fill. Interpolated values never pass through innerHTML (child values become text nodes or adopted DOM; attributes go through setAttribute). Event handlers set as properties so nanomorph copies them. Document-level roots (<body>/<head>/<html>) parse via DOMParser because <template> drops them. Replaces the v7 browserify transform entirely — production speed is now a runtime property. Tests run in happy-dom (new devDependency), including a check that server and browser renderers serialize identical markup. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014NgfSjHE11oFpoSnLVKLXd
22 lines
498 B
JSON
22 lines
498 B
JSON
{
|
|
"name": "@choojs/monorepo",
|
|
"private": true,
|
|
"version": "8.0.0-dev",
|
|
"description": "Monorepo for choo v8 — a 4kb framework for creating sturdy frontend applications",
|
|
"type": "module",
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"engines": {
|
|
"node": ">=24"
|
|
},
|
|
"scripts": {
|
|
"test": "node --test packages/core/test/ packages/html/test/ packages/component/test/"
|
|
},
|
|
"repository": "choojs/choo",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"happy-dom": "^20.14.0"
|
|
}
|
|
}
|