bundlebee 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -237,11 +237,11 @@ module.exports = class Bundlebee extends ReadyResource {
237
237
  readModule,
238
238
  listPrefix
239
239
  )) {
240
- if (dependency.url.href.startsWith(nodeModules.href)) {
240
+ if (dependency.url.href.includes('/node_modules/')) {
241
241
  if (skipModules) continue
242
242
  if (peerDependencies) {
243
243
  const moduleName = dependency.url.pathname
244
- .replace(root.pathname + 'node_modules/', '')
244
+ .slice(dependency.url.pathname.lastIndexOf('node_modules/') + 13)
245
245
  .split('/')[0]
246
246
  if (peerDependencies.has(moduleName)) continue
247
247
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bundlebee",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "bundlebee",
5
5
  "main": "index.js",
6
6
  "imports": {