0.0.1-beta2 • Published 4 years ago
vite-plugin-transform-ts-import v0.0.1-beta2
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
VSCodequick import
Install
yarn add vite-plugin-transform-ts-import -Dor
npm i vite-plugin-transform-ts-import -DUsage
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