Skip to content

Allow configuration of default script language #1262

@devmattrick

Description

@devmattrick

Is your feature request related to a problem? Please describe.
Right now, when auto-importing a component, it just defaults to adding a "vanilla" JS script tag. I do all of my work in Svelte in TypeScript so I need to go back and add a lang="ts" to the script tag.

Describe the solution you'd like
It'd be awesome if there was a way to configure the default script language in the plugin's configuration. This would simply just add lang="<lang>" to the generated script tag when a component is imported. This could in theory be extended to other cases where script and even style tags are generated.

Describe alternatives you've considered
Could always just do it the way I'm doing now but this would definitely be a small productivity boost.

Additional context
I'd be willing to help out with this one if this is a change that you like 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.feature requestNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions