resolvewithplus

2.1.5 • Public • Published

resolvewithplus

npm Build Status install size

resolvewithplus('koa', '/resolvewith/test/')
// 'file:///resolvewith/node_modules/koa/dist/koa.mjs'

resolvewithplus('react-dom/server', '/resolvewith/test/', {
  isbrowser: true
})
// 'file:///resolvewith/node_modules/react-dom/server.browser.js'

resolvewithplus('react-dom/server', '/resolvewith/test/', {
  priority: ['browser', 'default']
})
// 'file:///resolvewith/node_modules/react-dom/server.browser.js'

resolvewithplus resolves module paths à la node.js' import.meta.resolve function and the import-meta-resolve npm package. It exists mostly to be small and to resolve module paths for esmock. It's size is ~8kB compared to import-meta-resolve's ~75kB size. For more details, see the wiki.

scrounge

Package Sidebar

Install

npm i resolvewithplus

Weekly Downloads

648

Version

2.1.5

License

ISC

Unpacked Size

7.89 kB

Total Files

4

Last publish

Collaborators

  • bumblehead