Skip to content

Using export instead of import fails to correctly resolve identifiers. #10

@DanilaFe

Description

@DanilaFe

Hello 👋 😄

If I write:

import {Builder, RenderFn, AttrValue, Attributes, TemplateView, TemplateBuilder} from "./TemplateView";

All tests pass with no issues. However, if I change this to

export {Builder, RenderFn, AttrValue, Attributes, TemplateView, TemplateBuilder} from "./TemplateView";

(I only switched import to export), I get the following error:

import { Builder, RenderFn, AttrValue, Attributes, TemplateView, TemplateBuilder } from "./TemplateView";
                            ^^^^^^^^^

This is particularly baffling because TemplateView certainly does export AttrValue.

Got this on Impunity 1.0.1 and Node 16.7.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions