Skip to content

Commit 11cceea

Browse files
authored
revert: "fix: upgrade esbuild to 0.20.x" (#16072)
1 parent 899d9b1 commit 11cceea

File tree

4 files changed

+80
-89
lines changed

4 files changed

+80
-89
lines changed

packages/vite/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
},
8686
"//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
8787
"dependencies": {
88-
"esbuild": "^0.20.1",
88+
"esbuild": "^0.19.3",
8989
"postcss": "^8.4.35",
9090
"rollup": "^4.2.0"
9191
},

playground/legacy/__tests__/watch/legacy-styles-only-entry-watch.spec.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ import {
1010

1111
test.runIf(isBuild)('rebuilds styles only entry on change', async () => {
1212
expect(findAssetFile(/style-only-entry-.+\.css/, 'watch')).toContain(
13-
'#ff69b4',
13+
'hotpink',
1414
)
1515
expect(findAssetFile(/style-only-entry-legacy-.+\.js/, 'watch')).toContain(
16-
'#ff69b4',
16+
'hotpink',
1717
)
1818
expect(findAssetFile(/polyfills-legacy-.+\.js/, 'watch')).toBeTruthy()
1919
const numberOfManifestEntries = Object.keys(readManifest('watch')).length
2020
expect(numberOfManifestEntries).toBe(3)
2121

2222
editFile(
2323
'style-only-entry.css',
24-
(originalContents) => originalContents.replace('#ff69b4', '#ffb6c1'),
24+
(originalContents) => originalContents.replace('hotpink', 'lightpink'),
2525
true,
2626
)
2727
await notifyRebuildComplete(watcher)
@@ -35,13 +35,13 @@ test.runIf(isBuild)('rebuilds styles only entry on change', async () => {
3535
updatedManifest['style-only-entry.css']!.file.substring('assets/'.length),
3636
'watch',
3737
)
38-
expect(reRenderedCssFile).toContain('#ffb6c1')
38+
expect(reRenderedCssFile).toContain('lightpink')
3939
const reRenderedCssLegacyFile = findAssetFile(
4040
updatedManifest['style-only-entry-legacy.css']!.file.substring(
4141
'assets/'.length,
4242
),
4343
'watch',
4444
)
45-
expect(reRenderedCssLegacyFile).toContain('#ffb6c1')
45+
expect(reRenderedCssLegacyFile).toContain('lightpink')
4646
expect(findAssetFile(/polyfills-legacy-.+\.js/, 'watch')).toBeTruthy()
4747
})
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
:root {
2-
background: #ff69b4;
2+
background: hotpink;
33
}

0 commit comments

Comments
 (0)