Comparing version 1.0.3 to 1.0.4
@@ -1,3 +0,3 @@ | ||
const resolve = require('./lib/resolve'); | ||
const { createTransform } = require('./lib/transform'); | ||
const resolve = require('./resolve'); | ||
const { createTransform } = require('./transform'); | ||
const path = require('path'); | ||
@@ -4,0 +4,0 @@ const through = require('through2'); |
{ | ||
"name": "esmify", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "parse and handle import/export for browserify", | ||
@@ -5,0 +5,0 @@ "main": "./esmify.js", |
@@ -54,4 +54,13 @@ # esmify | ||
#### `require('esmify/resolve')(id, opts, cb)` | ||
Resolve the given `id` using the module resolution algorithm from `esmify`, accepting `{ mainFields }` array to opts as well as other options passed to [resolve](https://www.npmjs.com/package/resolve) and [browser-resolve](https://www.npmjs.com/package/browser-resolve). | ||
Works like so: | ||
- If mainFields includes a `"browser"` field, use `browser-resolve`, otherwise use `resolve` | ||
- Look for package.json fields in order of `mainFields`, the first field that exists will be used | ||
## License | ||
MIT, see [LICENSE.md](http://github.com/mattdesl/esmify/blob/master/LICENSE.md) for details. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11278
66
1