bare-module 4.8.1 → 4.8.2
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 +5 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -158,7 +158,11 @@ module.exports = exports = class Module {
|
|
|
158
158
|
const referrer = module
|
|
159
159
|
|
|
160
160
|
for (const { specifier, type } of result.imports) {
|
|
161
|
-
if (
|
|
161
|
+
if (
|
|
162
|
+
(type & lex.constants.REEXPORT) !== 0 &&
|
|
163
|
+
(type & lex.constants.ADDON) === 0 &&
|
|
164
|
+
(type & lex.constants.ASSET) === 0
|
|
165
|
+
) {
|
|
162
166
|
const resolved = Module.resolve(specifier, referrer._url, {
|
|
163
167
|
isImport: true,
|
|
164
168
|
referrer
|