unplugin / unplugin-vue2-script-setup

💡 Bring `<script setup>` to Vue 2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`transform` seem to be exported incorrectly

ShineKidd opened this issue · comments

Node: v14.17.5

const { transform } = require('unplugin-vue2-script-setup')
console.log(transform) // print undefined

I configure my jest followed the documentation, not work

module.exports = {
  transform: {
    '.*\\.(vue)$': 'unplugin-vue2-script-setup/jest',
  },
}

fixed in fixed in #96