stencil icon indicating copy to clipboard operation
stencil copied to clipboard

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

Open jpzwarte opened this issue 5 years ago • 2 comments

Stencil version:

 @stencil/[email protected]

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";

jpzwarte avatar Apr 06 '20 12:04 jpzwarte

Duplicate of #2074, which did not had any answer from Stencil team for a long moment

Nightmaster avatar Jun 11 '20 16:06 Nightmaster

I'm going to mark this to be ingested into our backlog. It's a little different from #2074, and will require a separate fix

rwaskiewicz avatar Aug 26 '22 13:08 rwaskiewicz

This was included in today's v4.19.0 release!

tanner-reits avatar Jun 26 '24 20:06 tanner-reits