naive-ui/build/rollup-plugin-css-render.js
2021-01-13 18:20:47 +08:00

10 lines
183 B
JavaScript

const cleanCssr = require('./utils/terse-cssr')
module.exports = () => ({
async transform (code, id) {
if (id.endsWith('.cssr.js')) {
return cleanCssr(code)
}
}
})