Skip to content

Allow <script lang='typescript'> without an explicit pre-processor #4797

@orta

Description

@orta

Describe the bug

We can reduce the number of tools people need to set up by adding very minimal support for TypeScript parsing of the JS. This can be done in the same way that Danger does it:

To Reproduce

<script lang="typescript">
	let name:string = 'world';
</script>

<h1>Hello {name}!</h1>

Expected behavior
This would pass, assuming TypeScript was in my dependencies

Stacktraces
n/a

Severity
Nice to have - a part of #4518

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterneeds a reproduction, or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions