mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +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)
|
|
}
|
|
}
|
|
}
|
|
}
|