test1 3 |
test2 4 |
├── test ├── helpers.js ├── htmlx2jsx │ ├── samples │ │ ├── element-only │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── action-bare │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── class-bare │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── comment │ │ │ ├── expected.jsx │ │ │ └── input.svelte │ │ ├── animation-bare │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── attribute-bare │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── debug-block │ │ │ ├── expected.jsx │ │ │ └── input.svelte │ │ ├── event-handler-bare │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── html-block │ │ │ ├── expected.jsx │ │ │ └── input.svelte │ │ ├── simple-expression │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── action-params │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── binding │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── attribute-quoted │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── attribute-shorthand │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── class │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── event-handler-component-bare │ │ │ ├── expected.jsx │ │ │ └── input.svelte │ │ ├── namespaced-attributes │ │ │ ├── expected.jsx │ │ │ └── input.svelte │ │ ├── attribute-text │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── binding-this │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── event-handler-modifiers │ │ │ ├── expected.jsx │ │ │ └── input.svelte │ │ ├── if-block │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── animation-params │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── attribute-multiple │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── binding-group │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── svg-attributes │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── each-block-basic │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── transition-modifiers │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── auto-closing-tag │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── binding-this-component │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── component-default-slot │ │ │ ├── expected.jsx │ │ │ └── input.svelte │ │ ├── each-block-index │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── binding-bare │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── component-no-slots │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── each-block-key │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── await-block-basic │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── event-handler-component │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── event-handler │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── transition-bare │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── component-default-slot-let │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── if-else-block │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── each-block-key-else │ │ │ ├── expected.jsx │ │ │ └── input.svelte │ │ ├── if-else-if-block │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── await-block-basic-catch │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── await-block-pending │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── void-elements │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── transition-params │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── await-block-pending-catch │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── component-multi-slot │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ ├── directive-quoted │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ │ └── binding-oneway │ │ │ ├── input.svelte │ │ │ └── expected.jsx │ └── index.js ├── svelte2tsx │ ├── samples │ │ ├── single-element │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── ast-offset-none │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── stores-mustache │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── ast-offset-some │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── uses-$$props │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── single-export │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── array-binding-export │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── export-has-type │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── export-interface │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── reactive-declare │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── typed-export-with-default │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── uses-$store │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── script-on-bottom │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── uses-$$props-script │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── binding-group-store │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── object-binding-export │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── self-closing-component │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── import-single-quote │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── export-references-local │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── component-default-slot │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── export-list │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── script-style-like-component │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── uses-$store-in-event-binding │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── renamed-exports │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── export-arrow-function │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── component-slot-crazy-attributes │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── multiple-export │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── imports │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── module-script-and-script-in-line │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── module-script-and-script-in-line2 │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── script-and-module-script │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── component-multiple-slots │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── module-script-and-script │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── module-script-and-script2 │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── await-with-$store │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── uses-svelte-components │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── nested-$-variables-script │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ ├── nested-$-variables-template │ │ │ ├── input.svelte │ │ │ └── expected.tsx │ │ └── circle-drawer-example │ │ │ ├── expected.tsx │ │ │ └── input.svelte │ ├── tsconfig.json │ └── index.js ├── sourcemaps │ ├── simple-element.htmlx.html │ ├── shorthand-prop.htmlx.html │ ├── let.html │ ├── event-binding.html │ ├── index.js │ └── repl.html └── test.js ├── mocha.opts ├── src ├── index.ts ├── svgattributes.ts ├── knownevents.ts ├── htmlxparser.ts ├── htmlxtojsx.ts └── svelte2tsx.ts ├── .gitignore ├── index.d.ts ├── .github └── workflows │ └── test.yml ├── tsconfig.json ├── rollup.config.js ├── .vscode └── launch.json ├── LICENSE ├── rollup.config.test.js ├── README.md ├── package.json └── svelte-shims.d.ts /test/helpers.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mocha.opts: -------------------------------------------------------------------------------- 1 | test/test.js -------------------------------------------------------------------------------- /test/htmlx2jsx/samples/element-only/input.svelte: -------------------------------------------------------------------------------- 1 |
test1 3 |
test2 4 |
test1 3 |
test2 4 |