Replies: 1 comment
-
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [
{
name: 'my-plugin',
transform() {
// ...
},
// And more API hooks ...
}
],
}) This is what actually happened when you use a plugin, it is just a object with specific attributes. As a convention, a published plugin usually is a function with return a plugin object. More api refer to: https://vitejs.dev/guide/api-plugin.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Tried multiple times but failed to build and bundle the plugin code using vite.
Beta Was this translation helpful? Give feedback.
All reactions