How to use the resolve.default function in resolve

To help you get started, we’ve selected a few resolve examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sebastian-software / postcss-smart-import / src / resolve-id.js View on Github external
return new Promise((resolve, reject) =>
  {
    resolveId(id, opts, (err, path) =>
      err ? reject(err) : resolve(path)
    )
  })
}

resolve

resolve like require.resolve() on behalf of files asynchronously and synchronously

MIT
Latest version published 3 days ago

Package Health Score

80 / 100
Full package analysis