Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions packages/core/core/src/requests/BundleGraphRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import MutableBundleGraph from '../public/MutableBundleGraph';
import {Bundle, NamedBundle} from '../public/Bundle';
import {report} from '../ReporterRunner';
import dumpGraphToGraphViz from '../dumpGraphToGraphViz';
import {unique} from '@parcel/utils';
import {unique, setDifference} from '@parcel/utils';
import {hashString} from '@parcel/hash';
import PluginOptions from '../public/PluginOptions';
import applyRuntimes from '../applyRuntimes';
Expand Down Expand Up @@ -420,7 +420,10 @@ class BundlerRunner {
assert.deepEqual(
bundleNames,
unique(bundleNames),
'Bundles must have unique names',
'Bundles must have unique name. Conflicting names: ' +
[
...setDifference(new Set(bundleNames), new Set(unique(bundleNames))),
].join(),
);
}

Expand Down