Skip to content

[Bug]: Nothing exports from esm barrel exports files (bundleless mode) #384

@xc2

Description

@xc2

Version


  System:
    OS: macOS 15.1
    CPU: (12) arm64 Apple M2 Max
    Memory: 81.77 MB / 32.00 GB
    Shell: 3.7.1 - /opt/homebrew/bin/fish
  Browsers:
    Chrome: 130.0.6723.92
    Safari: 18.1
  npmPackages:
    @rslib/core: ^0.0.16 => 0.0.16

Details

There's no export statement found in the esm output of barrel exports files.

E.g.

source: https://github.com/xc2/barrel-mjs-repro/blob/558e556275e0a587ced4adf7cca0197eaf33fe22/src/barrel.js
output: https://github.com/xc2/barrel-mjs-repro/blob/558e556275e0a587ced4adf7cca0197eaf33fe22/dist/barrel.js
usage:

Reproduce link

https://github.com/xc2/barrel-mjs-repro/tree/558e556275e0a587ced4adf7cca0197eaf33fe22

Reproduce Steps

bun run --bun build:rslib
bun test
node node-test.js

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