Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"postcss-load-config": "^6.0.1",
"postcss-modules": "^9.0.1",
"premove": "^4.0.0",
"resolve.exports": "^2.0.3",
"resolve.exports": "^2.0.4",
"rolldown-plugin-dts": "^0.28.8",
"rollup": "^4.59.0",
"rollup-plugin-license": "^3.7.1",
Expand Down
5 changes: 5 additions & 0 deletions playground/resolve/__tests__/resolve.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ test('Resolving star with imports filed', async () => {
expect(await page.textContent('.imports-star')).toMatch('[success]')
})

// https://github.com/vitejs/vite/issues/23637
test('Resolving star with $$ in filename with imports field', async () => {
expect(await page.textContent('.imports-star-dollar')).toMatch('[success]')
})

test('Resolving slash with imports filed', async () => {
expect(await page.textContent('.imports-slash')).toMatch('[success]')
})
Expand Down
1 change: 1 addition & 0 deletions playground/resolve/imports-path/star/dollar$$.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const msg = '[success] star with $$ in filename'
6 changes: 6 additions & 0 deletions playground/resolve/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ <h2>Resolving nested path with imports field</h2>
<h2>Resolving star with imports filed</h2>
<p class="imports-star">fail</p>

<h2>Resolving star with $$ in filename with imports field</h2>
<p class="imports-star-dollar">fail</p>

<h2>Resolving slash with imports filed</h2>
<p class="imports-slash">fail</p>

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

import { msg as importsStarDollar } from '#star/dollar$$.js'
text('.imports-star-dollar', importsStarDollar)

import { msg as importsSlash } from '#slash/index.js'
text('.imports-slash', importsSlash)

Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ minimumReleaseAgeExclude:
- '@vitejs/devtools-*'
- launch-editor-middleware@2.14.2
- launch-editor@2.14.2
- resolve.exports@2.0.4
trustPolicy: no-downgrade
trustPolicyExcludePrune: true
trustPolicyExclude:
Expand Down
Loading