naive-ui/scripts/pre-build/pre-cjs-build.js

9 lines
168 B
JavaScript

// replace lodash-es
const { replaceDefine, srcDir } = require('../utils')
;(async () => {
await replaceDefine([srcDir], {
"'lodash\\-es'": "'lodash'"
})
})()