这是indexloc提供的服务,不要输入任何密码
Skip to content

dts logs printed after build promise completes #776

@scheibo

Description

@scheibo

Currently using version 6.5.0:

The following prints hi before reportSizes for DTS gets logged:

  await tsup.build({
    entry: files,
    outDir: 'build',
    format: ['cjs', 'esm'],
    sourcemap: true,
    splitting: true,
    dts: true
  });

console.log(`\nProducing \x1b[96m${outfile}\x1b[0m for \x1b[34m@pkmn/${pkg}\x1b[0m...`);

From my actual project:

logs

Presumably this is due to rollup being run in a Worker and the future chain not being propagated appropriately, though from looking at the code myself I didn't see anything obvious

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions