remove some junk (this never did anything)

pull/16539/head
Rich Harris 1 month ago
parent 0917ce78f0
commit 2cf74a0c3c

@ -526,7 +526,6 @@ export function analyze_component(root, source, options) {
has_global: false has_global: false
}, },
source, source,
undefined_exports: new Map(),
snippet_renderers: new Map(), snippet_renderers: new Map(),
snippets: new Set(), snippets: new Set(),
async_deriveds: new Set() async_deriveds: new Set()

@ -35,11 +35,6 @@ export function SnippetBlock(node, context) {
if (can_hoist) { if (can_hoist) {
const binding = /** @type {Binding} */ (context.state.scope.get(name)); const binding = /** @type {Binding} */ (context.state.scope.get(name));
context.state.analysis.module.scope.declarations.set(name, binding); context.state.analysis.module.scope.declarations.set(name, binding);
} else {
const undefined_export = context.state.analysis.undefined_exports.get(name);
if (undefined_export) {
e.snippet_invalid_export(undefined_export);
}
} }
node.metadata.can_hoist = can_hoist; node.metadata.can_hoist = can_hoist;

@ -95,7 +95,6 @@ export interface ComponentAnalysis extends Analysis {
}; };
/** @deprecated use `source` from `state.js` instead */ /** @deprecated use `source` from `state.js` instead */
source: string; source: string;
undefined_exports: Map<string, Node>;
/** /**
* Every render tag/component, and whether it could be definitively resolved or not * Every render tag/component, and whether it could be definitively resolved or not
*/ */

Loading…
Cancel
Save