Skip to content

Commit fccc450

Browse files
committed
fix: deprecate lang=typescript
1 parent 2ff0c3d commit fccc450

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: src/modules/language.ts

+6
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ export const getLanguage = (attributes: PreprocessorArgs['attributes']) => {
8585
}
8686

8787
alias = attributes.lang;
88+
89+
if (alias === 'typescript') {
90+
console.warn(
91+
`[svelte-preprocess] Please use 'lang="ts"' instead of 'lang="typescript"'.`,
92+
);
93+
}
8894
} else if (attributes.type) {
8995
// istanbul ignore if
9096
if (typeof attributes.type !== 'string') {

0 commit comments

Comments
 (0)