mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 19:28:14 +08:00
ca7bcfe9b3
* feat: add unplugin-vue-define-options * feat: add jest support
12 lines
358 B
JavaScript
12 lines
358 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
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)
|
|
},
|
|
}
|