message: fix(@vant/cli): failed to build types of sfc
diff: @@ -87,11 +87,6 @@ export async function compileSfc(filePath: string): Promise<any> {
  new Promise((resolve) => {
  let script = '';
  - // the generated render fn lacks type definitions
  - if (lang === 'ts') {
  - script += '// @ts-nocheck\n';
  - }
  -
  let bindingMetadata;
  if (descriptor.scriptSetup) {
  const { bindings, content } = compileScript(descriptor, {
  @@ -125,6 +120,12 @@ export async function compileSfc(filePath: string): Promise<any> {
  script += `\n${EXPORT} ${VUEIDS}`;
  + // ts-nocheck should be placed on the first line
  + // the generated render fn lacks type definitions
  + if (lang === 'ts') {
  + script = '// @ts-nocheck\n' + script;
  + }
  +
  outputFile(scriptFilePath, script).then(resolve);
  })
  );
  