-
-
Notifications
You must be signed in to change notification settings - Fork 221
Closed
sveltejs/svelte-preprocess
#267Labels
questionA user questionA user question
Description
Describe the bug
My svelte.config.js file looks like this:
import sveltePreprocess from "svelte-preprocess";
module.exports = {
preprocess: sveltePreprocess({
defaults: {
script: "typescript",
style: "scss",
},
postcss: {
plugins: [require("autoprefixer")()],
},
}),
};Expected behavior
It is showing me that you have to add lang='ts' to svelte file that looks something like this:
<script>
export let segment: string;
</script>
{segment}System (please complete the following information):
- OS: Windows
- IDE: VSCode
- Plugin/Package: Svelte for VSCode
Metadata
Metadata
Assignees
Labels
questionA user questionA user question
