Skip to content

Commit d2ed623

Browse files
committed
also error on svelte/internal
1 parent 2afafea commit d2ed623

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/svelte/src/compiler/phases/2-analyze/validation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ function ensure_no_module_import_conflict(node, state) {
906906
*/
907907
export const validation_runes_js = {
908908
ImportDeclaration(node) {
909-
if (typeof node.source.value === 'string' && node.source.value.startsWith('svelte/internal/')) {
909+
if (typeof node.source.value === 'string' && node.source.value.startsWith('svelte/internal')) {
910910
e.import_svelte_internal_forbidden(node);
911911
}
912912
},
@@ -1083,7 +1083,7 @@ function validate_assignment(node, argument, state) {
10831083

10841084
export const validation_runes = merge(validation, a11y_validators, {
10851085
ImportDeclaration(node) {
1086-
if (typeof node.source.value === 'string' && node.source.value.startsWith('svelte/internal/')) {
1086+
if (typeof node.source.value === 'string' && node.source.value.startsWith('svelte/internal')) {
10871087
e.import_svelte_internal_forbidden(node);
10881088
}
10891089
},

0 commit comments

Comments
 (0)