huozhi / bunchee

Zero config bundler for ECMAScript and TypeScript packages
https://npmjs.com/bunchee
861 stars 28 forks source link

fix: regex expression of circular dependency #476

Closed nnecec closed 4 months ago

nnecec commented 4 months ago

Issue

If a project is one of a monorepo, navigate to the project and run it maybe print the Circular dependency warnings.

Circular dependency: ../../node_modules/.pnpm/culori@4.0.1/node_modules/culori/src/parse.js -> ../../node_modules/.pnpm/culori@4.0.1/node_modules/culori/src/modes.js -> ../../node_modules/.pnpm/culori@4.0.1/node_modules/culori/src/converter.js -> ../../node_modules/.pnpm/culori@4.0.1/node_modules/culori/src/_prepare.js -> ../../node_modules/.pnpm/culori@4.0.1/node_modules/culori/src/parse.js

Solution

Update the Circular dependency regex expression.