We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How i can use DI-compiler with Vite.js ?
DI-compiler
Vite.js
The text was updated successfully, but these errors were encountered:
I've written a simple vite plugin applying the transformers:
const { di } = require('@wessberg/di-compiler'); const typescript = require('rollup-plugin-ts'); module.exports = function (options = {}) { return { name: 'vite:di', enforce: 'pre', ...typescript({ ...options, transformers: [di], transpileOnly: true, exclude: ['**/*.test.ts'], tsconfig: (resolvedConfig) => ({ ...resolvedConfig, declaration: false }), }), }; };
Adjust options and config to your needs and you should be good to go.
Sorry, something went wrong.
If someone needs a full setup example, here it is.
No branches or pull requests
How i can use
DI-compiler
withVite.js
?The text was updated successfully, but these errors were encountered: