Skip to content

Bug: moduleType is incorrect #508

@sxzz

Description

@sxzz

Unit test: #509

Reproduction: https://stackblitz.com/edit/stackblitz-starters-8vojucuk?file=index.js

❯ node index.js
{
  path: '.../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js',
  moduleType: 'module',
  packageJsonPath: '/home/projects/stackblitz-starters-8vojucuk/node_modules/minimatch/package.json'
}
  • minimatch/dist/commonjs/assert-valid-pattern.js is actually a CJS module
  • packageJsonPath should be minimatch/dist/commonjs/package.json

Relate to #476

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions