您无需执行任何操作。
require('my-library') // will require the `main` entry pointrequire('my-library/some-other-file') // will require a different file
您无需执行任何操作。
require('my-library') // will require the `main` entry pointrequire('my-library/some-other-file') // will require a different file