bare-module 2.7.0 → 2.7.1
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.
- package/index.js +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -685,6 +685,8 @@ Module._extensions['.bundle'] = function (module, source, referrer) {
|
|
|
685
685
|
|
|
686
686
|
if (typeof source === 'string') source = Buffer.from(source)
|
|
687
687
|
|
|
688
|
+
referrer = module
|
|
689
|
+
|
|
688
690
|
const bundle = module._bundle = Bundle.from(source).mount(module._filename)
|
|
689
691
|
|
|
690
692
|
if (bundle.main) {
|