import-js/eslint-plugin-import

`no-unresolved` is not aware of `exports` definition in `package.json`

Open

#1,810 创建于 2020年6月8日

在 GitHub 查看
 (73 评论) (86 反应) (0 负责人)JavaScript (4,946 star) (1,540 fork)batch import
`exports` supporthelp wanted

描述

From this announcement

Package entry points and the package.json “exports” field

There are now two fields that can define entry points for a package: “main” and“exports”. The “main” field is supported in all versions of Node.js, but its capabilities are limited: it only defines the main entry point of the package. A new package.json field “exports” can also define the main entry point, along with subpaths. It also provides encapsulation, where only the paths explicitly defined in “exports” are available for importing. “exports” applies to both CommonJS and ES module packages, whether used via require or import.

Might need to be fix in resolve package..

贡献者指南