Skip to content

[Feature]: Is it possible to automatically ignore dts files inside a folder in bundleless mode? #635

@wood3n

Description

@wood3n

Version

System:
    OS: Linux 6.1 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (4) x64 AMD EPYC
    Memory: 6.56 GB / 8.01 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  npmPackages:
    @rslib/core: ^0.2.2 => 0.2.2

Details

I think dts files should be ignored by default when building a bundle library? Although this can be achieved by configuring entry as src/**/!(*.d.ts). If don't config this, dts file will be transformed to an empty js file.

Image

Reproduce link

https://codesandbox.io/p/github/wood3n/rslib-test/master?embed=1&file=%2Frslib.config.ts

Reproduce Steps

run pnpm run build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions