Skip to content

The compiler does not support import { foo as bar } from '...' #2335

@jpzwarte

Description

@jpzwarte

Stencil version:

 @stencil/core@1.12.2

I'm submitting a:

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:

Expected behavior:

Steps to reproduce:

When you rename an import using the as operator, the output in components.d.ts is invalid:

Related code:

import { IconDefinition as FaIconDefinition } from '@fortawesome/fontawesome-svg-core';

Output (components.d.ts):

import { FaIconDefinition, } from "@fortawesome/fontawesome-svg-core";

Metadata

Metadata

Assignees

Labels

Bug: ValidatedThis PR or Issue is verified to be a bug within Stencil

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions