File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
core/integration-tests/test Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -776,6 +776,7 @@ function createIdealGraph(
776776 manualSharedMap . set ( manualSharedBundleKey , bundleId ) ;
777777 }
778778 bundle . manualSharedBundle = manualSharedObject . name ;
779+ bundle . uniqueKey = manualSharedObject . name + childAsset . type ;
779780 }
780781 }
781782 }
Original file line number Diff line number Diff line change 99 fsFixture ,
1010 run ,
1111} from '@parcel/test-utils' ;
12+ import { hashString } from '@parcel/rust' ;
1213
1314describe ( 'bundler' , function ( ) {
1415 it ( 'should not create shared bundles when a bundle is being reused and disableSharedBundles is enabled' , async function ( ) {
@@ -1520,6 +1521,10 @@ describe('bundler', function () {
15201521 assets : [ 'math.js' , 'add.js' , 'subtract.js' ] ,
15211522 } ,
15221523 ] ) ;
1524+
1525+ let targetDistDir = __dirname . replace ( '/test' , '/dist' ) ;
1526+ let hashedIdWithMSB = hashString ( 'bundle:' + 'vendorjs' + targetDistDir ) ;
1527+ assert ( b . getBundles ( ) . find ( b => b . id == hashedIdWithMSB ) ) ;
15231528 } ) ;
15241529
15251530 it ( 'should support manual shared bundles with constants module' , async function ( ) {
@@ -1655,6 +1660,10 @@ describe('bundler', function () {
16551660 } ,
16561661 ] ) ;
16571662
1663+ let targetDistDir = __dirname . replace ( '/test' , '/dist' ) ;
1664+ let hashedIdWithMSB = hashString ( 'bundle:' + 'vendorjs' + targetDistDir ) ;
1665+ assert ( b . getBundles ( ) . find ( b => b . id == hashedIdWithMSB ) ) ;
1666+
16581667 await run ( b ) ;
16591668 } ) ;
16601669
You can’t perform that action at this time.
0 commit comments