mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-03 03:38:41 +08:00
11 lines
228 B
JavaScript
11 lines
228 B
JavaScript
module.exports = function (content, map, meta) {
|
|
content = content.replace(
|
|
/^export\s*{\s*default as (.+?)}(.+)/mg,`
|
|
import _$1 $2
|
|
export const $1 = () => _$1
|
|
`.trim())
|
|
this.callback(null, content, map, meta)
|
|
return
|
|
}
|
|
|