Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/svelte/src/compiler/phases/1-parse/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class Parser {

regex_lang_attribute.lastIndex = 0; // reset matched index to pass tests - otherwise declare the regex inside the constructor

this.ts = match_lang?.[2] === 'ts';
this.ts = (match_lang?.[2] === 'ts') || (match_lang?.[2] === 'ts (typescript)');

this.root = {
css: null,
Expand Down