Skip to content

Commit

Permalink
fix(api/commonjs/package.js): remove default entry exports
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Apr 23, 2024
1 parent d20a70b commit e586fa4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions api/commonjs/package.js
Expand Up @@ -558,11 +558,7 @@ export class Package {
#imports = {}

#exports = {
'.': {
require: './index.js',
import: './index.js',
default: './index.js'
}
'.': {}
}

/**
Expand Down Expand Up @@ -883,7 +879,7 @@ export class Package {
}
}

if (info.main && !info.module) {
if (info.main && !info.module && !info.type) {
this.#type = 'commonjs'
}

Expand Down

0 comments on commit e586fa4

Please sign in to comment.