umi-next icon indicating copy to clipboard operation
umi-next copied to clipboard

lowImport.css 不支持关闭

Open kingback opened this issue 2 years ago • 0 comments

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;

kingback avatar Apr 06 '22 09:04 kingback