@@ -99,8 +99,8 @@ test('build w/ multi page', async () => {
99
99
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 > / )
100
100
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 > / )
101
101
// 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 > / )
104
104
// should load correct page js
105
105
expect ( index ) . toMatch ( / < s c r i p t [ ^ > ] * s r c = \/ j s \/ i n d e x \. \w + \. j s > / )
106
106
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 () => {
114
114
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 > / )
115
115
// should not prefetch async chunk js and css because it's not used by
116
116
// 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 > / )
119
119
// should load correct page js
120
120
expect ( foo ) . not . toMatch ( / < s c r i p t [ ^ > ] * s r c = \/ j s \/ i n d e x \. \w + \. j s > / )
121
121
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 () => {
128
128
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 > / )
129
129
expect ( bar ) . toMatch ( / < l i n k [ ^ > ] * j s \/ b a r [ ^ > ] * \. j s r e l = p r e l o a d > / )
130
130
// 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 > / )
133
133
// should load correct page js
134
134
expect ( bar ) . not . toMatch ( / < s c r i p t [ ^ > ] * s r c = \/ j s \/ i n d e x \. \w + \. j s > / )
135
135
expect ( bar ) . not . toMatch ( / < s c r i p t [ ^ > ] * s r c = \/ j s \/ f o o \. \w + \. j s > / )
0 commit comments