You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`markupTagName`|`"template"`|`string` that sets the name of the tag `svelte-preprocess` looks for markup in custom languages.<br><br>i.e `markup` makes it possible to write your markup between `<markup lang="..."></markup>` tag. |
73
-
|`aliases`|`null`| A list of tuples `[alias: string, language: string]` that correlates an `alias` to a `language`<br><br>i.e `['cst', 'customLanguage']` means<br>`<... src="./file.cst">`<br>`<... lang="cst">`<br>`<... type="text/customLanguage">`<br>`<... type="application/customLanguage">`<br>are treated as `customLanguage`. |
74
-
| preserve |`[]`| A `string` list of languages/aliases that shouldn't pass through the preprocessor. (i.e `ld+json`) |
73
+
|`aliases`|`null`| A list of tuples `[alias: string, language: string]` that correlates an `alias` to a `language`<br><br>i.e `['cst', 'customLanguage']` means<br>`<... src="./file.cst">`<br>`<... lang="cst">`<br>are treated as `customLanguage`. |
74
+
|`preserve`|`[]`| A `string` list of languages/aliases that shouldn't pass through the preprocessor. (i.e `ld+json`) |
75
75
|`sourceMap`|`false`| If `true`, `svelte-preprocess` generates sourcemap for every language that supports it. |
76
76
77
77
##### Configuring preprocessors
@@ -133,7 +133,7 @@ export default {
133
133
};
134
134
```
135
135
136
-
Now `svelte-preprocess` will use the `potatoLanguage` preprocessor whenever it finds a tag with `lang="potato"`, `type="text/potatoLanguage"` or `src="./index.pot"`.
136
+
Now `svelte-preprocess` will use the `potatoLanguage` preprocessor whenever it finds a tag with `lang="potato"` or `src="./index.pot"`.
137
137
138
138
These methods receive the same arguments and act exactly like a [common svelte preprocessor](https://svelte.dev/docs#svelte_preprocess), but the concept of `markup`/`style`/`script` is abstracted as they are executed whenever `svelte-preprocess` find the aforementioned attributes.
139
139
@@ -273,7 +273,7 @@ The PostCSS preprocessor accepts four options:
273
273
274
274
In auto-preprocessing mode, you can set `postcss: true` if `postcss-load-config` is installed and `svelte-preprocess` will look for a PostCSS config file in your project.
275
275
276
-
When a `lang="sugarss"`/`type="text/sugarss"` is found, `sugarss` is automatically loaded and extra indentation is removed.
276
+
When a `lang="sugarss"` is found, `sugarss` is automatically loaded and extra indentation is removed.
277
277
278
278
You can check the [PostCSS API reference](https://api.postcss.org/) for PostCSS specific options.
279
279
@@ -356,7 +356,7 @@ You can check the [Sass API reference](https://sass-lang.com/documentation/js-ap
356
356
357
357
Note: `svelte-preprocess` automatically configures inclusion paths for your root directory, `node_modules` and for the current file's directory.
358
358
359
-
Note: when a `lang="sass"`/`type="text/sass"` is found, `indentedSyntax` is automatically set to `true`.
359
+
Note: when a `lang="sass"` is found, `indentedSyntax` is automatically set to `true`.
360
360
361
361
Note: `sass`, with indented syntax, and `scss` are not interchangeable so make sure to configure the correct one that fits your needs.
`[svelte-preprocess] Deprecation notice: using 'lang="typescript"' is no longer recommended and will be removed in the next major version. Please use 'lang="ts"' instead.`,
`[svelte-preprocess] Deprecation notice: using the "type" attribute is no longer recommended and will be removed in the next major version. Please use the "lang" attribute instead.`,
0 commit comments