import-js/eslint-plugin-import
在 GitHub 查看`no-unresolved` is not aware of `exports` definition in `package.json`
Open
#1,810 创建于 2020年6月8日
`exports` supporthelp wanted
仓库指标
- Star
- (4,946 star)
- PR 合并指标
- (平均合并 138天 22小时) (30 天内合并 3 个 PR)
描述
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..