Skip to content

Commit 626e465

Browse files
committed
types(plugin-vue-jsx): expose default to match typing
1 parent aeaa48a commit 626e465

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: packages/plugin-vue-jsx/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const hash = require('hash-sum')
88
* @param {import('.').Options} options
99
* @returns {import('vite').Plugin}
1010
*/
11-
module.exports = function vueJsxPlugin(options = {}) {
11+
function vueJsxPlugin(options = {}) {
1212
let needHmr = false
1313
let needSourceMap = true
1414

@@ -213,3 +213,6 @@ function isDefineComponentCall(node) {
213213
node.callee.name === 'defineComponent'
214214
)
215215
}
216+
217+
module.exports = vueJsxPlugin
218+
vueJsxPlugin.default = vueJsxPlugin

0 commit comments

Comments
 (0)