3.0.9 • Published 1 year ago

vite-plugin-lib-types v3.0.9

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

vite-plugin-lib-types

Generate dts file while building library, supports vue file

Usage

npm i -D vite-plugin-lib-types

A simple example is shown below:

import { defineConfig } from 'vite';
import types from 'vite-plugin-lib-types';

export default defineConfig({
  plugins: [types()],
  build: {
    target: 'ES2018',
    sourcemap: true,
    minify: false,
    lib: {
      entry: 'src/index.ts',
      formats: ['es', 'cjs'],
    },
  },
});

Options

nametypedefaultdescription
tsconfigobjectundefinedoverride the value of tsconfig
tsconfigPathstring${root}/tsconfig.jsonpath of tsconfig
outDirstringundefineddts file output path
fileNamestring \| function[]custom dts file names
transformersTransformer[][]Custom dts file transformer
3.0.9

1 year ago

3.0.7

1 year ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.0

2 years ago

1.0.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.6

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

0.2.0

2 years ago

1.0.10

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago