@@ -99,8 +99,8 @@ test('build w/ multi page', async () => {
9999 expect ( index ) . not . toMatch ( / < l i n k [ ^ > ] * j s \/ f o o [ ^ > ] * \. j s r e l = p r e l o a d > / )
100100 expect ( index ) . not . toMatch ( / < l i n k [ ^ > ] * j s \/ b a r [ ^ > ] * \. j s r e l = p r e l o a d > / )
101101 // should prefetch async chunk js and css
102- expect ( index ) . toMatch ( / < l i n k [ ^ > ] * c s s \/ 0 \. \w + \. c s s r e l = p r e f e t c h > / )
103- expect ( index ) . toMatch ( / < l i n k [ ^ > ] * j s \/ 0 \. \w + \. j s r e l = p r e f e t c h > / )
102+ expect ( index ) . toMatch ( / < l i n k [ ^ > ] * c s s \/ c h u n k - \w + \. \w + \. c s s r e l = p r e f e t c h > / )
103+ expect ( index ) . toMatch ( / < l i n k [ ^ > ] * j s \/ c h u n k - \w + \. \w + \. j s r e l = p r e f e t c h > / )
104104 // should load correct page js
105105 expect ( index ) . toMatch ( / < s c r i p t [ ^ > ] * s r c = \/ j s \/ i n d e x \. \w + \. j s > / )
106106 expect ( index ) . not . toMatch ( / < s c r i p t [ ^ > ] * s r c = \/ j s \/ f o o \. \w + \. j s > / )
@@ -114,8 +114,8 @@ test('build w/ multi page', async () => {
114114 expect ( foo ) . not . toMatch ( / < l i n k [ ^ > ] * j s \/ b a r [ ^ > ] * \. j s r e l = p r e l o a d > / )
115115 // should not prefetch async chunk js and css because it's not used by
116116 // this entry
117- expect ( foo ) . not . toMatch ( / < l i n k [ ^ > ] * c s s \/ 0 \. \w + \. c s s r e l = p r e f e t c h > / )
118- expect ( foo ) . not . toMatch ( / < l i n k [ ^ > ] * j s \/ 0 \. \w + \. j s r e l = p r e f e t c h > / )
117+ expect ( foo ) . not . toMatch ( / < l i n k [ ^ > ] * c s s \/ c h u n k - \w + \. \w + \. c s s r e l = p r e f e t c h > / )
118+ expect ( foo ) . not . toMatch ( / < l i n k [ ^ > ] * j s \/ c h u n k - \w + \. \w + \. j s r e l = p r e f e t c h > / )
119119 // should load correct page js
120120 expect ( foo ) . not . toMatch ( / < s c r i p t [ ^ > ] * s r c = \/ j s \/ i n d e x \. \w + \. j s > / )
121121 expect ( foo ) . toMatch ( / < s c r i p t [ ^ > ] * s r c = \/ j s \/ f o o \. \w + \. j s > / )
@@ -128,8 +128,8 @@ test('build w/ multi page', async () => {
128128 expect ( bar ) . not . toMatch ( / < l i n k [ ^ > ] * j s \/ f o o [ ^ > ] * \. j s r e l = p r e l o a d > / )
129129 expect ( bar ) . toMatch ( / < l i n k [ ^ > ] * j s \/ b a r [ ^ > ] * \. j s r e l = p r e l o a d > / )
130130 // should prefetch async chunk js and css
131- expect ( bar ) . toMatch ( / < l i n k [ ^ > ] * c s s \/ 0 \. \w + \. c s s r e l = p r e f e t c h > / )
132- expect ( bar ) . toMatch ( / < l i n k [ ^ > ] * j s \/ 0 \. \w + \. j s r e l = p r e f e t c h > / )
131+ expect ( bar ) . toMatch ( / < l i n k [ ^ > ] * c s s \/ c h u n k - \w + \. \w + \. c s s r e l = p r e f e t c h > / )
132+ expect ( bar ) . toMatch ( / < l i n k [ ^ > ] * j s \/ c h u n k - \w + \. \w + \. j s r e l = p r e f e t c h > / )
133133 // should load correct page js
134134 expect ( bar ) . not . toMatch ( / < s c r i p t [ ^ > ] * s r c = \/ j s \/ i n d e x \. \w + \. j s > / )
135135 expect ( bar ) . not . toMatch ( / < s c r i p t [ ^ > ] * s r c = \/ j s \/ f o o \. \w + \. j s > / )
0 commit comments