@cdlab996/vite-plugin-lib-types2.7
v1.0.0
Published
Generate typescript declarations, Supports Vue2.7 Files
Downloads
6
Readme
vite-plugin-lib-types2.7
Generate typescript declarations, Supports Vue2.7 Files
🔧 Installation
pnpm add -D @cdlab996/vite-plugin-lib-types2.7
A simple example is shown below:
import { defineConfig } from 'vite'
import LibTypes from '@cdlab996/vite-plugin-lib-types2.7'
export default defineConfig({
plugins: [LibTypes({ fileName: 'vue-renderer.d.ts' })],
build: {
target: 'ES2018',
sourcemap: true,
lib: {
entry: 'src/index.ts',
fileName: () => 'vue-renderer.mjs',
formats: ['es'],
},
},
})
⚡ Credits
tips: This project is specifically tailored for the lowcode-engine-vue version 2.7, offering enhanced support for this framework. For additional packages within the ecosystem, please explore further.
This project is inspired by:
- https://github.com/keuby/vite-plugin-lib-types