This is a Vite plugin for transforming TypeScript files that use decorators.
pnpm add vite-ts-decorators
// 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;
}
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.
This project was bootstrapped with esbuild-decorators by anatine
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.