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.
Files changed (2) hide show
  1. package/index.js +5 -1
  2. 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 (type & lex.constants.REEXPORT) {
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "4.8.1",
3
+ "version": "4.8.2",
4
4
  "description": "Module support for JavaScript",
5
5
  "exports": {
6
6
  ".": {