Skip to content

Commit

Permalink
Allow synthesizing Protocol, Bundle, and constants
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Sep 10, 2024
1 parent cc2a630 commit 34b4e99
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,6 @@ const Module = module.exports = exports = class Module {
}
}

static Protocol = Protocol
static Bundle = Bundle
static constants = constants

static get protocol () {
return this._protocol
}
Expand Down Expand Up @@ -511,6 +507,11 @@ const Module = module.exports = exports = class Module {
}
}

exports.Protocol = Protocol
exports.Bundle = Bundle

exports.constants = constants

// For Node.js compatibility
exports.builtinModules = []

Expand Down

0 comments on commit 34b4e99

Please sign in to comment.