mirror of https://github.com/sveltejs/svelte
parent
3ad47c324d
commit
c856ea2032
@ -1,17 +0,0 @@
|
||||
/** @import { ImportDeclaration } from 'estree' */
|
||||
/** @import { ComponentContext } from '../types' */
|
||||
import * as b from '#compiler/builders';
|
||||
|
||||
/**
|
||||
* @param {ImportDeclaration} node
|
||||
* @param {ComponentContext} context
|
||||
*/
|
||||
export function ImportDeclaration(node, context) {
|
||||
if ('hoisted' in context.state) {
|
||||
// TODO we can get rid of this visitor
|
||||
context.state.hoisted.push(node);
|
||||
return b.empty;
|
||||
}
|
||||
|
||||
context.next();
|
||||
}
|
||||
Loading…
Reference in new issue