bare-module 1.9.5 → 1.9.6

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
@@ -92,7 +92,7 @@ const Module = module.exports = class Module {
92
92
 
93
93
  if (this._cache[specifier]) return this._transform(this._cache[specifier], referrer, dynamic)
94
94
 
95
- const bundle = this._bundleFor(specifier, protocol, source)
95
+ const bundle = this._bundleFor(path.dirname(specifier), protocol, source)
96
96
 
97
97
  if (bundle) {
98
98
  imports = { ...imports, ...bundle.imports }
@@ -149,7 +149,7 @@ const Module = module.exports = class Module {
149
149
  referrer = null
150
150
  } = opts
151
151
 
152
- const bundle = this._bundleFor(specifier, protocol)
152
+ const bundle = this._bundleFor(path.dirname(specifier), protocol)
153
153
 
154
154
  if (bundle) {
155
155
  imports = { ...imports, ...bundle.imports }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "1.9.5",
3
+ "version": "1.9.6",
4
4
  "description": "Module support for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [