Skip to content

declaration inside entries have no effect #529

@NamesMT

Description

@NamesMT

Environment


  • Operating System: Linux
  • Node Version: v22.14.0
  • Package Manager: [email protected]
  • Unbuild Version: v3.5.0

Reproduction

Any simple dummmy repo with the config:

export default defineBuildConfig({
  entries: [
    // Main engine
    {
      input: 'src/index',
      declaration: 'node16',
    },

    // CLI app
    {
      input: 'src/cli',
      declaration: false,
    },
  ],
  declaration: false,
  clean: true,
  rollup: {
    inlineDependencies: true,
    esbuild: {
      target: 'esnext',
      // minify: true,
    },
  },
})

Describe the bug

declaration inside entries have no effect, no declaration files is generated with the included config.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions