Skip to content

Commit

Permalink
test: resolve ts extension when query params used (#12586)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Mar 26, 2023
1 parent 35faae9 commit 2d9e691
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions playground/resolve/index.html
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

0 comments on commit 2d9e691

Please sign in to comment.