这是indexloc提供的服务,不要输入任何密码
Skip to content

Possible to have export default emit as module.exports #572

@alii

Description

@alii

I know it's not the preferred way of having a default export, but it would save a lot of time if this would be possible. I'm writing an ESLint plugin and currently cannot import the plugin into a CJS file because the module is exported as module.exports.default rather than simply module.exports.

Have only come across this issue which I wasn't able to find a way to implement it properly: #283 and also #255 but I got the warnings below:
image

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions