Skip to content
New issue

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

Using Vite (V5) requires plugin opts. #6

Open
TylerAtCodeOfLife opened this issue Jan 17, 2024 · 0 comments
Open

Using Vite (V5) requires plugin opts. #6

TylerAtCodeOfLife opened this issue Jan 17, 2024 · 0 comments

Comments

@TylerAtCodeOfLife
Copy link

import { defineConfig } from 'vite'
import pattycake from 'pattycake'

// typescript wants pattycake.vite(options)
export default defineConfig({
plugins:[ pattycake.vite() ]
})
// the options type HirCodegenOpts just has a bool for chaining so i fixed it as such
export default defineConfig({
plugins:[ pattycake.vite({disableOptionalChaining: true}) ]
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant