Skip to content

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

Closed
ionic-team/ionic-framework
#29666

Description

@jpzwarte

Stencil version:

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

Activity

  1. Nightmaster commented on Jun 11, 2020

    @Nightmaster
    Contributor

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

  2. rwaskiewicz commented on Aug 26, 2022

    @rwaskiewicz
    Member

    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

  3. added
    Bug: Validated
    on Aug 26, 2022
  4. self-assigned this
    on Jun 14, 2024
  5. tanner-reits commented on Jun 26, 2024

    @tanner-reits
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Bug: Validated

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions