umi-next
umi-next copied to clipboard
lowImport.css 不支持关闭
https://github.com/umijs/umi-next/blob/3959e3ed1767c4e19381fcb2501ad0250e5ab183/packages/preset-umi/src/features/lowImport/lowImport.ts#L149
https://github.com/umijs/umi-next/blob/3959e3ed1767c4e19381fcb2501ad0250e5ab183/packages/preset-umi/src/features/lowImport/lowImport.ts#L138
场景
// umi.ts
export default {
lowImport: {
libs: [],
css: false
}
}
// index.ts
import styles from './styles.ts';
<button style={styles['button']} />
希望不自动处理 styles,并且 lowImport.d.ts 不生成 const styles: any;