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

[Bug]: Evaluating context request with conditional expression #6874

Open
h-a-n-a opened this issue Jun 20, 2024 · 0 comments · May be fixed by #6963
Open

[Bug]: Evaluating context request with conditional expression #6874

h-a-n-a opened this issue Jun 20, 2024 · 0 comments · May be fixed by #6963
Labels
bug Something isn't working team The issue/pr is created by the member of Rspack.

Comments

@h-a-n-a
Copy link
Collaborator

h-a-n-a commented Jun 20, 2024

System Info

Rspack 0.7.*

Details

Failed to evaluate context request with conditional expression.

Take this as an example:

let content = "foo"
import(`${true ? "a" : "b"}-${content}`)

This was turned into a request:

__webpack_require__("context")(`./a-0${content}`)

0 is most likely introduced by const plugin

Reproduce link

No response

Reproduce Steps

See details above.

@h-a-n-a h-a-n-a added bug Something isn't working pending triage The issue/PR is currently untouched. labels Jun 20, 2024
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Jun 20, 2024
@h-a-n-a h-a-n-a removed the pending triage The issue/PR is currently untouched. label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working team The issue/pr is created by the member of Rspack.
Projects
None yet
1 participant