message: feat(preset-umi): fixed version import is not allowed
diff: @@ -23,4 +23,16 @@ export default (api: IApi) => {
  },
  });
  });
  +
  + api.onCheckCode((args) => {
  + // Fixed version import is not allowed
  + // e.g. import { X } from '_@ant-design_icons@4.7.0@ant-design/icons'
  + if (['cnpm', 'tnpm'].includes(api.appData.npmClient)) {
  + args.imports.forEach(({ source }) => {
  + if (/@\d/.test(source)) {
  + throw new Error(`${source} is not allowed to import.`);
  + }
  + });
  + }
  + });
  };
  