Skip to content

Commit

Permalink
Make exported symbols on exports enumerable
Browse files Browse the repository at this point in the history
Workaround for oven-sh/bun#4432
  • Loading branch information
andsens committed Jul 4, 2024
1 parent 6ce2be7 commit 6d5443b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @type {Symbol}
*/
Object.defineProperty(exports, 'LEVEL', {
enumerable: true,
value: Symbol.for('level')
});

Expand All @@ -21,6 +22,7 @@ Object.defineProperty(exports, 'LEVEL', {
* @type {Symbol}
*/
Object.defineProperty(exports, 'MESSAGE', {
enumerable: true,
value: Symbol.for('message')
});

Expand All @@ -32,6 +34,7 @@ Object.defineProperty(exports, 'MESSAGE', {
* @type {Symbol}
*/
Object.defineProperty(exports, 'SPLAT', {
enumerable: true,
value: Symbol.for('splat')
});

Expand All @@ -42,5 +45,6 @@ Object.defineProperty(exports, 'SPLAT', {
* @type {Object}
*/
Object.defineProperty(exports, 'configs', {
enumerable: true,
value: require('./config')
});

0 comments on commit 6d5443b

Please sign in to comment.