vite-ts-decorators
v1.1.0
Published
A Vite plugin for transforming TypeScript code with decorators
Readme
Vite TypeScript Decorators
This is a Vite plugin for transforming TypeScript files that use decorators.
Installation
pnpm add vite-ts-decoratorsUsage
// vite.config.ts
import { defineConfig } from 'vite';
import tsDecorators from 'vite-ts-decorators';
export default defineConfig({
plugins: [
tsDecorators()
]
});export interface ViteDecoratorsOptions {
tsconfig?: string;
cwd?: string;
force?: boolean;
srcDir?: string;
}Contributing
We welcome contributions to improve this SDK! To get started:
- Fork the repository.
- Create a new branch (
git checkout -b feature-name). - Commit your changes (
git commit -m "Add feature X"). - Push to the branch (
git push origin feature-name). - Open a pull request.
Credits
This project was bootstrapped with esbuild-decorators by anatine
License
This SDK is released under the MIT License. You’re free to use, modify, and distribute this project. See the LICENSE file for more details.
