Skip to content

Commit 8c8a795

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

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] Deprecation notice: using 'lang="typescript"' is no longer recommended and will be removed in the next major version. Please use 'lang="ts"' instead.`,
92+
);
93+
}
8894
} else if (attributes.type) {
8995
// istanbul ignore if
9096
if (typeof attributes.type !== 'string') {

0 commit comments

Comments
 (0)