Skip to content

Commit

Permalink
types(plugin-vue-jsx): expose default to match typing
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 7, 2021
1 parent aeaa48a commit 626e465
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/plugin-vue-jsx/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const hash = require('hash-sum')
* @param {import('.').Options} options
* @returns {import('vite').Plugin}
*/
module.exports = function vueJsxPlugin(options = {}) {
function vueJsxPlugin(options = {}) {
let needHmr = false
let needSourceMap = true

Expand Down Expand Up @@ -213,3 +213,6 @@ function isDefineComponentCall(node) {
node.callee.name === 'defineComponent'
)
}

module.exports = vueJsxPlugin
vueJsxPlugin.default = vueJsxPlugin

0 comments on commit 626e465

Please sign in to comment.