fix: can't recognize one package same version but different directory #69
Annotations
5 errors
Test:
tests/plugin.test.ts#L33
AssertionError: expected '[warn] packages @pixi/utils, @yutengj…' to be '[warn] packages @pixi/utils, @yutengj…' // Object.is equality
- Expected
+ Received
[warn] packages @pixi/utils, @yutengjing/foo, axios is bundled multiple times!
@pixi/utils(82.901kb):
- 7.0.0(38.550kb) imported by tests/fixtures/mono/packages/pkg2/index.js
- 7.2.4(44.351kb) imported by tests/fixtures/mono/packages/pkg1/index.js
@yutengjing/foo(0.470kb):
- 1.0.3(0.235kb)
- - node_modules/.pnpm/@yutengjing+foo@1.0.3_vue@2.6.14/node_modules/@yutengjing/foo imported by tests/fixtures/mono/packages/pkg1/index.js
- - node_modules/.pnpm/@yutengjing+foo@1.0.3_vue@2.7.16/node_modules/@yutengjing/foo imported by tests/fixtures/mono/packages/pkg2/index.js
+ - D:\a\unplugin-detect-duplicated-deps\unplugin-detect-duplicated-deps\node_modules\.pnpm\@yutengjing+foo@1.0.3_vue@2.6.14\node_modules\@yutengjing\foo imported by tests/fixtures/mono/packages/pkg1/index.js
+ - D:\a\unplugin-detect-duplicated-deps\unplugin-detect-duplicated-deps\node_modules\.pnpm\@yutengjing+foo@1.0.3_vue@2.7.16\node_modules\@yutengjing\foo imported by tests/fixtures/mono/packages/pkg2/index.js
axios(49.876kb):
- 0.27.2(19.658kb) imported by tests/fixtures/mono/packages/pkg2/index.js
- 1.4.0 (30.218kb) imported by tests/fixtures/mono/packages/pkg1/index.js
❯ tests/plugin.test.ts:33:27
|
Test:
tests/plugin.test.ts#L39
AssertionError: expected '[warn] packages @pixi/utils, @yutengj…' to be '[warn] packages @pixi/utils, @yutengj…' // Object.is equality
- Expected
+ Received
[warn] packages @pixi/utils, @yutengjing/foo, axios is bundled multiple times!
@pixi/utils(82.901kb):
- 7.0.0(38.550kb) imported by tests/fixtures/mono/packages/pkg2/index.js
- 7.2.4(44.351kb) imported by tests/fixtures/mono/packages/pkg1/index.js
@yutengjing/foo(0.470kb):
- 1.0.3(0.235kb)
- - node_modules/.pnpm/@yutengjing+foo@1.0.3_vue@2.6.14/node_modules/@yutengjing/foo imported by tests/fixtures/mono/packages/pkg1/index.js
- - node_modules/.pnpm/@yutengjing+foo@1.0.3_vue@2.7.16/node_modules/@yutengjing/foo imported by tests/fixtures/mono/packages/pkg2/index.js
+ - D:\a\unplugin-detect-duplicated-deps\unplugin-detect-duplicated-deps\node_modules\.pnpm\@yutengjing+foo@1.0.3_vue@2.6.14\node_modules\@yutengjing\foo imported by tests/fixtures/mono/packages/pkg1/index.js
+ - D:\a\unplugin-detect-duplicated-deps\unplugin-detect-duplicated-deps\node_modules\.pnpm\@yutengjing+foo@1.0.3_vue@2.7.16\node_modules\@yutengjing\foo imported by tests/fixtures/mono/packages/pkg2/index.js
axios(49.876kb):
- 0.27.2(19.658kb) imported by tests/fixtures/mono/packages/pkg2/index.js
- 1.4.0 (30.218kb) imported by tests/fixtures/mono/packages/pkg1/index.js
❯ tests/plugin.test.ts:39:27
|
Test:
tests/plugin.test.ts#L48
AssertionError: expected '[warn] packages @pixi/constants, @pix…' to be '[warn] packages @pixi/constants, @pix…' // Object.is equality
- Expected
+ Received
[warn] packages @pixi/constants, @pixi/settings, @pixi/utils, @yutengjing/foo, axios is bundled multiple times!
@pixi/constants(10.934kb):
- 7.0.0(5.467kb) imported by @pixi/settings@7.0.0, @pixi/utils@7.0.0
- 7.2.4(5.467kb) imported by @pixi/utils@7.2.4
@pixi/settings(10.884kb):
- 7.0.0(8.134kb) imported by @pixi/utils@7.0.0
- 7.2.4(2.750kb) imported by @pixi/utils@7.2.4
@pixi/utils(82.901kb):
- 7.0.0(38.550kb) imported by tests/fixtures/mono/packages/pkg2/index.js
- 7.2.4(44.351kb) imported by tests/fixtures/mono/packages/pkg1/index.js
@yutengjing/foo(0.470kb):
- 1.0.3(0.235kb)
- - node_modules/.pnpm/@yutengjing+foo@1.0.3_vue@2.6.14/node_modules/@yutengjing/foo imported by tests/fixtures/mono/packages/pkg1/index.js
- - node_modules/.pnpm/@yutengjing+foo@1.0.3_vue@2.7.16/node_modules/@yutengjing/foo imported by tests/fixtures/mono/packages/pkg2/index.js
+ - D:\a\unplugin-detect-duplicated-deps\unplugin-detect-duplicated-deps\node_modules\.pnpm\@yutengjing+foo@1.0.3_vue@2.6.14\node_modules\@yutengjing\foo imported by tests/fixtures/mono/packages/pkg1/index.js
+ - D:\a\unplugin-detect-duplicated-deps\unplugin-detect-duplicated-deps\node_modules\.pnpm\@yutengjing+foo@1.0.3_vue@2.7.16\node_modules\@yutengjing\foo imported by tests/fixtures/mono/packages/pkg2/index.js
axios(49.876kb):
- 0.27.2(19.658kb) imported by tests/fixtures/mono/packages/pkg2/index.js
- 1.4.0 (30.218kb) imported by tests/fixtures/mono/packages/pkg1/index.js
❯ tests/plugin.test.ts:48:27
|
Test:
tests/plugin.test.ts#L57
AssertionError: expected '[warn] packages @pixi/utils, @yutengj…' to be '[warn] packages @pixi/utils, @yutengj…' // Object.is equality
- Expected
+ Received
[warn] packages @pixi/utils, @yutengjing/foo, axios is bundled multiple times!
@pixi/utils:
- 7.0.0 imported by tests/fixtures/mono/packages/pkg2/index.js
- 7.2.4 imported by tests/fixtures/mono/packages/pkg1/index.js
@yutengjing/foo:
- 1.0.3
- - node_modules/.pnpm/@yutengjing+foo@1.0.3_vue@2.6.14/node_modules/@yutengjing/foo imported by tests/fixtures/mono/packages/pkg1/index.js
- - node_modules/.pnpm/@yutengjing+foo@1.0.3_vue@2.7.16/node_modules/@yutengjing/foo imported by tests/fixtures/mono/packages/pkg2/index.js
+ - D:\a\unplugin-detect-duplicated-deps\unplugin-detect-duplicated-deps\node_modules\.pnpm\@yutengjing+foo@1.0.3_vue@2.6.14\node_modules\@yutengjing\foo imported by tests/fixtures/mono/packages/pkg1/index.js
+ - D:\a\unplugin-detect-duplicated-deps\unplugin-detect-duplicated-deps\node_modules\.pnpm\@yutengjing+foo@1.0.3_vue@2.7.16\node_modules\@yutengjing\foo imported by tests/fixtures/mono/packages/pkg2/index.js
axios:
- 0.27.2 imported by tests/fixtures/mono/packages/pkg2/index.js
- 1.4.0 imported by tests/fixtures/mono/packages/pkg1/index.js
❯ tests/plugin.test.ts:57:27
|
Test
Process completed with exit code 1.
|
Loading