mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
8131aa343c
* chore: migrate to vite2 * styles: remove unsed code * chore: update package.json Co-authored-by: Volankey <jiwen.bai@tusimple.ai>
16 lines
276 B
JavaScript
16 lines
276 B
JavaScript
const cleanCssr = require('./utils/clean-cssr')
|
|
|
|
module.exports = () => {
|
|
return {
|
|
name: 'css-render-vite',
|
|
transform (src, id) {
|
|
if (id.endsWith('.cssr.js')) {
|
|
return {
|
|
code: cleanCssr(src),
|
|
map: null
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|