You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -123,9 +142,9 @@ so that `require('tar')` will just return `{}` in the browser because you don't
123
142
intend to support the `.parse()` export in a browser environment.
124
143
125
144
```js
126
-
varresolve=require('browser-resolve');
145
+
varbresolve=require('browser-resolve');
127
146
var parent = { filename:__dirname+'/skip/main.js' };
128
-
resolve('tar', parent, function(err, path) {
147
+
bresolve('tar', parent, function(err, path) {
129
148
console.log(path);
130
149
});
131
150
```
@@ -141,6 +160,6 @@ MIT
141
160
142
161
# upgrade notes
143
162
144
-
Prior to v1.x this library provided shims for node core modules. These have since been removed. If you want to have alternative core modules provided, use the `modules` option when calling resolve.
163
+
Prior to v1.x this library provided shims for node core modules. These have since been removed. If you want to have alternative core modules provided, use the `modules` option when calling `bresolve()`.
145
164
146
165
This was done to allow package managers to choose which shims they want to use without browser-resolve being the central point of update.
0 commit comments