chore: remove some unused code (#14363)

pull/14368/head
Rich Harris 1 month ago committed by GitHub
parent 53cc60085e
commit ce471310c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -57,23 +57,5 @@ export function ExportNamedDeclaration(node, context) {
}
}
}
if (!context.state.ast_type /* .svelte.js module */ || context.state.ast_type === 'module') {
for (const specified of node.specifiers) {
if (specified.local.type !== 'Identifier') continue;
const binding = context.state.scope.get(specified.local.name);
if (!binding) continue;
if (binding.kind === 'derived') {
e.derived_invalid_export(node);
}
if ((binding.kind === 'state' || binding.kind === 'raw_state') && binding.reassigned) {
e.state_invalid_export(node);
}
}
}
}
}

Loading…
Cancel
Save