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:
Describe the bug
TypeScript 4.5
typemodifiers 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:
...but this breaks:
Expected behavior
Preact WMR should support all the tasty goodness of TypeScript syntactic sugar :)
Bug occurs with:
wmrorwmr start(development)wmr build(production)