Skip to content

bug: esm模式打包后,node项目使用,本地模块因为没有.js后缀导致报错 #760

@hasnum-stack

Description

@hasnum-stack

Version

4

OS Version

macOS

Node.js Version

16

Link to minimal reproduction

Steps to reproduce

cjs模式后,node项目引入

What is expected?

添加.js后缀

What is actually happening?

引入报错

Any additional comments? (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions