Skip to content

Commit

Permalink
Remove unused property
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Apr 8, 2019
1 parent 229e795 commit f0d8835
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ast/nodes/MetaProperty.ts
Expand Up @@ -11,19 +11,16 @@ import { NodeBase } from './shared/Node';
export default class MetaProperty extends NodeBase {
meta: Identifier;
property: Identifier;
rendered: boolean;
type: NodeType.tMetaProperty;

initialise() {
if (this.meta.name === 'import') {
this.rendered = false;
this.context.addImportMeta(this);
}
this.included = false;
}

render(code: MagicString, options: RenderOptions) {
if (this.meta.name === 'import') this.rendered = true;
super.render(code, options);
}

Expand Down

0 comments on commit f0d8835

Please sign in to comment.