0.0.1-beta2 • Published 4 years ago

vite-plugin-transform-ts-import v0.0.1-beta2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

vite-plugin-transform-ts-import

The plugin just do one thing. It add a 'type' keyword in form of your ts interface declaration or type declaration;

It may solve the error like "xxx does not provide an export named 'xxx'" when vite running;

<!-- will be transformed like this -->
// import {YourType} from 'typesFile' old
import type {TestType} from 'typesFile'; // after transformed
 

<!-- content in typesFile.ts -->
export type TestType = Array<{a: number}>
  • help you upgrade or migration ts project which used webpack
  • does not want to add "type" keyword after VSCode quick import

Install

yarn add vite-plugin-transform-ts-import -D

or

npm i vite-plugin-transform-ts-import -D

Usage

0.0.1-beta.9

4 years ago

0.0.1-beta.8

4 years ago

0.0.1-beta.7

4 years ago

0.0.1-beta.6

4 years ago

0.0.1-beta.5

4 years ago

0.0.1-beta.4

4 years ago

0.0.1-beta.2

4 years ago

0.0.2-beta

4 years ago

0.0.1-beta2

4 years ago

0.0.1-beta

4 years ago