Skip to content

[Bug]: mainFiles autoExtensions bad case "./components/button/index.js" #250

Closed
@SoonIter

Description

@SoonIter

Version

rslib 0.0.8

Details

image
.
├── src
│   ├── button
│   │   └── index.tsx
│   └── index.ts
└── tsconfig.json

input

// index.ts
import button from './button';

expected behavior

import button from './button/index.mjs';

actual behavior

import button from './button.mjs';

Reproduce link

none

Reproduce Steps

none

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