-
-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Labels
bugSomething isn't workingSomething isn't workingupstreamRelated to or blocked on an upstream projectRelated to or blocked on an upstream project
Description
Describe the bug
TypeScript 4.5 type modifiers on imported names are not supported.
https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#type-on-import-names
To Reproduce
For example, this works:
import type { Options, VNode } from 'preact';
import { options } from 'preact'; // eslint-disable-line no-duplicate-imports...but this breaks:
import { type Options, type VNode, options } from 'preact';SyntaxError: Error transforming /PATH/TO/code.ts: Unexpected token, expected ","
Expected behavior
Preact WMR should support all the tasty goodness of TypeScript syntactic sugar :)
Bug occurs with:
-
wmrorwmr start(development) -
wmr build(production)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingupstreamRelated to or blocked on an upstream projectRelated to or blocked on an upstream project