mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-03 04:21:34 +08:00
13 lines
254 B
JavaScript
13 lines
254 B
JavaScript
const terseCssr = require('./utils/terse-cssr')
|
|
|
|
module.exports = () => {
|
|
return {
|
|
name: 'css-render-vite',
|
|
transform (src, id) {
|
|
if (id.endsWith('.cssr.ts') || id.endsWith('.cssr.js')) {
|
|
return terseCssr(src)
|
|
}
|
|
}
|
|
}
|
|
}
|