Enhance your static HTML declaratively with HTML Plus. Easily add dynamic features through web components for an enriched and extensible user experience.
Required:
- Typescript 5.2 minimum
- Polifyll for Webkit https://unpkg.com/@ungap/[email protected]/min.js
// tsconfig
"target": "es2022",
"lib": [
"es2022",
"esnext.decorators",
"dom"
],
"emitDecoratorMetadata": true,
"experimentalDecorators": false,
// main.js
Symbol.metadata ??= Symbol('Symbol.metadata');
Disable esbuild and use tsc instead Esbuild doesn't support emitDecoratorMedata yet.