Skip to content

There are vue files in the packaged directory, but the plugin did not generate type files for the vue files #330

@chuyuan132

Description

@chuyuan132

Checklist

  • I can reproduce this issue when running this plugin on its own.
    Other plugins, such as node-resolve are known to cause issues.
  • I am running this plugin on .d.ts files generated by TypeScript.
    The plugin can consume .ts and even .js files (with allowJs: true), but this is known to cause issues.
  • This issue is not related to rolling up @types.
    The plugin ignores these by default, unless respectExternal is set. @types can contain hand-crafted code which is known to cause issues.

Code Snipped

// Your code that is causing problems.
 const bundle = await rollup({
    input: entryInput,
    plugins: [
      dts({
        compilerOptions: {
          preserveSymlinks: false,
        },
      }),
    ],
  });
  await bundle.write({
    format: 'esm',
    dir: resolve(outPath, 'es'),
    preserveModules: true,
    entryFileNames: `[name].d.ts`,
  });

Error Message

There are vue files in the packaged directory, but the plugin did not generate type files for the vue files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions