Commit 033248a
committed
exports: also accept .js-suffixed deep imports
The exports map's './lib/*' pattern only covers bare deep imports
like require('rclnodejs/lib/distro'). Add a sibling './lib/*.js'
pattern so require('rclnodejs/lib/distro.js') resolves the same
file, instead of erroneously mapping to './lib/distro.js.js' and
throwing ERR_PACKAGE_PATH_NOT_EXPORTED.
Verified all forms now resolve: bare and .js-suffixed, top-level
and nested (lib/action/client[.js]).1 parent c0a3d1c commit 033248a
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments