Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Not to remove unused import module ? #21114

Copy link
Copy link

Description

@zD98
Issue body actions

TypeScript Version: 2.4.1

Code

// tsconfig.json
{
...
"jsx": "preserve",
...
}
// my preact Component
import {h, Component} from 'preact'
class C extends Component<any, any> {
    render(){
    // ...
    }
}
// after compiled
import { Component } from 'preact'

So it will throw an error, such as "h is not defined"

Expected behavior:

// after compiled
import {h, Component } from 'preact'

Actual behavior:

// after compiled
import {Component} from 'preact' 

Related:

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedA PR has been merged for this issueA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.