element-plus/internal/build/vue-jest-transformer.js
三咲智子 bb939c6a58
refactor(build): move to internal package (#6585)
* refactor(build): move to internal package

* ci: fix

* chore: fix

* fix: docs

* chore: add fast-glob to root package

* chore: fix PR comments

* build: add tsx

* refactor: re-organize

* refactor: improve log
2022-03-15 19:23:38 +08:00

11 lines
302 B
JavaScript

const transfomer = require('vue-jest')
const { transform } = require('unplugin-vue-define-options')
module.exports = {
getCacheKey: transfomer.getCacheKey,
process(src, filename, config) {
src = transform(src, filename)?.code || src
return transfomer.process(src, filename, config)
},
}