Skip to content

refactor test import path, remove redundancy index.js #13

Open
@paranoidjk

Description

@paranoidjk

ref: react-component/tree-select#62

踩了个坑,nodejs 读目录会优先尝试 pkg.main, 失败才会 fallback 到 index.js

https://github.com/nodejs/node/blob/master/lib/module.js#L115

所以用例里面 import TreeSelect from '..'; 会优先引用到 lib。

cc @react-component/admin

  • tree-select

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions