Skip to content

Commit 4ea708a

Browse files
authored
fix(resolve): update resolve.exports to 2.0.4 (#23739)
1 parent 38f3cb4 commit 4ea708a

6 files changed

Lines changed: 19 additions & 6 deletions

File tree

‎packages/vite/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"postcss-load-config": "^6.0.1",
121121
"postcss-modules": "^9.0.1",
122122
"premove": "^4.0.0",
123-
"resolve.exports": "^2.0.3",
123+
"resolve.exports": "^2.0.4",
124124
"rolldown-plugin-dts": "^0.28.8",
125125
"rollup": "^4.59.0",
126126
"rollup-plugin-license": "^3.7.1",

‎playground/resolve/__tests__/resolve.spec.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ test('Resolving star with imports filed', async () => {
219219
expect(await page.textContent('.imports-star')).toMatch('[success]')
220220
})
221221

222+
// https://github.com/vitejs/vite/issues/23637
223+
test('Resolving star with $$ in filename with imports field', async () => {
224+
expect(await page.textContent('.imports-star-dollar')).toMatch('[success]')
225+
})
226+
222227
test('Resolving slash with imports filed', async () => {
223228
expect(await page.textContent('.imports-slash')).toMatch('[success]')
224229
})
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const msg = '[success] star with $$ in filename'

‎playground/resolve/index.html‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ <h2>Resolving nested path with imports field</h2>
5555
<h2>Resolving star with imports filed</h2>
5656
<p class="imports-star">fail</p>
5757

58+
<h2>Resolving star with $$ in filename with imports field</h2>
59+
<p class="imports-star-dollar">fail</p>
60+
5861
<h2>Resolving slash with imports filed</h2>
5962
<p class="imports-slash">fail</p>
6063

@@ -264,6 +267,9 @@ <h2>utf8-bom-package</h2>
264267
import { msg as importsStar } from '#star/index.js'
265268
text('.imports-star', importsStar)
266269

270+
import { msg as importsStarDollar } from '#star/dollar$$.js'
271+
text('.imports-star-dollar', importsStarDollar)
272+
267273
import { msg as importsSlash } from '#slash/index.js'
268274
text('.imports-slash', importsSlash)
269275

‎pnpm-lock.yaml‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pnpm-workspace.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ minimumReleaseAgeExclude:
6464
- '@vitejs/devtools-*'
6565
6666
67+
6768
trustPolicy: no-downgrade
6869
trustPolicyExcludePrune: true
6970
trustPolicyExclude:

0 commit comments

Comments
 (0)