Skip to content

Commit 3eb8cab

Browse files
🚨 [security] Update vite 4.3.2 → 5.1.6 (major) (#13287)
* Update vite to version 5.1.6 * Fix regex --------- Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com> Co-authored-by: Jordan Pittman <[email protected]>
1 parent 3a466bc commit 3eb8cab

File tree

3 files changed

+1131
-175
lines changed

3 files changed

+1131
-175
lines changed

‎integrations/vite/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
},
2222
"devDependencies": {
2323
"isomorphic-fetch": "^3.0.0",
24-
"vite": "^4.3.2"
24+
"vite": "^5.1.6"
2525
}
2626
}

‎integrations/vite/tests/integration.test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('static build', () => {
3434
env: { NODE_ENV: 'production', NO_COLOR: '1' },
3535
})
3636

37-
expect(await readOutputFile(/index.\w+\.css$/)).toIncludeCss(
37+
expect(await readOutputFile(/index.[a-z0-9_-]+\.css$/i)).toIncludeCss(
3838
css`
3939
.font-bold {
4040
font-weight: 700;
@@ -76,7 +76,7 @@ describe('static build', () => {
7676
})
7777

7878
if (env.ENGINE === 'stable') {
79-
expect(await readOutputFile(/index.\w+\.css$/)).toIncludeCss(
79+
expect(await readOutputFile(/index.[a-z0-9_-]+\.css$/i)).toIncludeCss(
8080
css`
8181
.bg-primary {
8282
--tw-bg-opacity: 1;
@@ -87,7 +87,7 @@ describe('static build', () => {
8787
}
8888

8989
if (env.ENGINE === 'oxide') {
90-
expect(await readOutputFile(/index.\w+\.css$/)).toIncludeCss(
90+
expect(await readOutputFile(/index.[a-z0-9_-]+\.css$/i)).toIncludeCss(
9191
css`
9292
.bg-primary {
9393
background-color: black;
@@ -132,7 +132,7 @@ describe('static build', () => {
132132
})
133133

134134
if (env.ENGINE === 'stable') {
135-
expect(await readOutputFile(/index.\w+\.css$/)).toIncludeCss(
135+
expect(await readOutputFile(/index.[a-z0-9_-]+\.css$/i)).toIncludeCss(
136136
css`
137137
.bg-primary {
138138
--tw-bg-opacity: 1;
@@ -143,7 +143,7 @@ describe('static build', () => {
143143
}
144144

145145
if (env.ENGINE === 'oxide') {
146-
expect(await readOutputFile(/index.\w+\.css$/)).toIncludeCss(
146+
expect(await readOutputFile(/index.[a-z0-9_-]+\.css$/i)).toIncludeCss(
147147
css`
148148
.bg-primary {
149149
background-color: black;

0 commit comments

Comments
 (0)