Skip to content

Commit ce47131

Browse files
authored
chore: remove some unused code (#14363)
1 parent 53cc600 commit ce47131

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

packages/svelte/src/compiler/phases/2-analyze/visitors/ExportNamedDeclaration.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,5 @@ export function ExportNamedDeclaration(node, context) {
5757
}
5858
}
5959
}
60-
61-
if (!context.state.ast_type /* .svelte.js module */ || context.state.ast_type === 'module') {
62-
for (const specified of node.specifiers) {
63-
if (specified.local.type !== 'Identifier') continue;
64-
65-
const binding = context.state.scope.get(specified.local.name);
66-
67-
if (!binding) continue;
68-
69-
if (binding.kind === 'derived') {
70-
e.derived_invalid_export(node);
71-
}
72-
73-
if ((binding.kind === 'state' || binding.kind === 'raw_state') && binding.reassigned) {
74-
e.state_invalid_export(node);
75-
}
76-
}
77-
}
7860
}
7961
}

0 commit comments

Comments
 (0)