element-plus/build/vue-jest-transformer.js
三咲智子 b8c38a9fe5
chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +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)
},
}