├── test ├── fixtures │ ├── Nested.svelte │ ├── template.custom │ ├── template.pug │ ├── style.css │ ├── template.html │ ├── script.coffee │ ├── script.js │ ├── style.less │ ├── script.ts │ ├── style.scss │ ├── style.sass │ ├── style.styl │ ├── script.babel.js │ ├── tsconfig.json │ ├── tsconfig.semantic.json │ ├── tsconfig.es2021target.json │ ├── tsconfig.extends2.json │ ├── TypeScriptTypesOnly.svelte │ ├── tsconfig.extends1.json │ ├── tsconfig.outdir.json │ ├── postcss.config.js │ ├── types.ts │ ├── TypeScriptES2021.svelte │ ├── PreserveValueImports.svelte │ ├── TypeScriptImportsModule.svelte │ └── TypeScriptImports.svelte ├── node_modules │ └── scss-package │ │ └── main.scss ├── transformers │ ├── less.test.ts │ ├── stylus.test.ts │ ├── babel.test.ts │ ├── pug.test.ts │ ├── scss.test.ts │ ├── replace.test.ts │ ├── postcss.test.ts │ ├── typescript.test.ts │ └── globalStyle.test.ts ├── processors │ ├── postcss.test.ts │ ├── babel.test.ts │ ├── pug.test.ts │ ├── less.test.ts │ ├── stylus.test.ts │ ├── coffeescript.test.ts │ ├── typescript.test.ts │ └── scss.test.ts ├── autoProcess │ ├── script.test.ts │ ├── style.test.ts │ ├── markup.test.ts │ ├── sourceMaps.test.ts │ ├── externalFiles.test.ts │ └── autoProcess.test.ts ├── utils.ts └── modules │ ├── modules.test.ts │ └── globalifySelector.test.ts ├── .prettierrc ├── .eslintignore ├── .prettierignore ├── .gitignore ├── tsconfig.build.json ├── .editorconfig ├── src ├── types │ ├── modules.d.ts │ ├── options.ts │ └── index.ts ├── modules │ ├── errors.ts │ ├── prepareContent.ts │ ├── globalifySelector.ts │ ├── tagInfo.ts │ ├── utils.ts │ ├── markup.ts │ └── language.ts ├── transformers │ ├── replace.ts │ ├── less.ts │ ├── coffeescript.ts │ ├── stylus.ts │ ├── babel.ts │ ├── globalStyle.ts │ ├── postcss.ts │ ├── pug.ts │ ├── scss.ts │ └── typescript.ts ├── processors │ ├── replace.ts │ ├── globalStyle.ts │ ├── pug.ts │ ├── postcss.ts │ ├── babel.ts │ ├── less.ts │ ├── typescript.ts │ ├── stylus.ts │ ├── coffeescript.ts │ └── scss.ts ├── index.ts └── autoProcess.ts ├── scripts.js ├── tsconfig.json ├── .eslintrc ├── .github ├── PULL_REQUEST_TEMPLATE.md ├── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md ├── workflows │ └── ci.yml └── ISSUE_TEMPLATE.md ├── CONTRIBUTING.md ├── LICENSE ├── package.json ├── docs ├── migration-guide.md ├── usage.md ├── getting-started.md └── preprocessing.md └── README.md /test/fixtures/Nested.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template.custom: -------------------------------------------------------------------------------- 1 | foo -------------------------------------------------------------------------------- /test/fixtures/template.pug: -------------------------------------------------------------------------------- 1 | div Hey -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | "@kiwi/prettier-config" -------------------------------------------------------------------------------- /test/fixtures/style.css: -------------------------------------------------------------------------------- 1 | div{color:red} -------------------------------------------------------------------------------- /test/fixtures/template.html: -------------------------------------------------------------------------------- 1 |
{hello}
92 | 93 | 94 | {#if AValue && val} 95 |There is a value: {AValue}
96 | {/if} 97 | 98 | {#if val && isTest1(val) && AValue && true && "test"} 99 |There is a value: {AValue}
100 | {:else if obj.val && obj.fn() && isTest1(obj.val)} 101 |There is a value: {AValue}
102 | {:else} 103 | Else 104 | {/if} 105 | 106 | {#each arr as item (item)} 107 |{item}
108 | {/each} 109 | 110 | {#each arr as item} 111 |{item}
112 | {:else} 113 |No items
114 | {/each} 115 | 116 | {#await prom} 117 | Loading... 118 | {:then value} 119 | inputVal = e.currentTarget.value} /> 120 | {:catch err} 121 |Error: {err}
122 | {/await} 123 | 124 | {#await prom then value} 125 |{value}
126 | {/await} 127 | 128 | {#key val} 129 |Keyed {val}
130 | {/key} 131 | 132 |{inputVal}
134 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |