Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: resolve ts extension when query params used #12586

Merged
merged 1 commit into from
Mar 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions playground/resolve/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ <h2>
</h2>
<p class="mjs-extension">fail</p>

<h2>
A ts module can import another ESM module using its corresponding mjs file
name with query parameters
</h2>
<p class="mjs-extension-with-query">fail</p>

<h2>
A ts module can import another CommonJS module using its corresponding cjs
file name
Expand Down Expand Up @@ -262,6 +268,9 @@ <h2>resolve package that contains # in path</h2>
import { msgMjs as tsMjsExtensionMsg } from './ts-extension'
text('.mjs-extension', tsMjsExtensionMsg)

import { msgMjs as tsMjsExtensionWithQueryMsg } from './ts-extension?query=1'
text('.mjs-extension-with-query', tsMjsExtensionWithQueryMsg)

// filename with dot
import { bar } from './util/bar.util'
text('.dot', bar())
Expand Down