Skip to content

Feature Request: Remove the need to import h() #2710

@kensodemann

Description

@kensodemann

Stencil version:

 @stencil/core@<version>

I'm submitting a:

[ ] bug report
[x] 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:
https://github.com/ionic-team/stencil/blob/master/BREAKING_CHANGES.md#import--h--is-required

Expected behavior:
Improvements coming in TypeScript 4.1 may allow us to remove this requirement via a configuration item in the tsconfig.json as such:

{
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "@stencil"
  }
}

Investigate this further when TS 4.1 is available.

Internal discussion starts here: https://ionicteam.slack.com/archives/C7DKHCCFR/p1602850889025100

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions