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]: "??=" operator does not work properly in the mobile application #6666

Closed
KyrieChen opened this issue May 30, 2024 · 5 comments · Fixed by #6672
Closed

[Bug]: "??=" operator does not work properly in the mobile application #6666

KyrieChen opened this issue May 30, 2024 · 5 comments · Fixed by #6672
Assignees
Labels
bug Something isn't working

Comments

@KyrieChen
Copy link

System Info

rspack 0.7.0
device:OPPO Find X
ColorOS:v7.1
Android version:10
Webview: Mozilla/5.0 (Linux; Android 10; PAFM00 Build/QKQ1.191008.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.92 Mobile Safari/537.36

Details

In our project, we found that errors occur in the webview due to the use of the ??= operator without proper compatibility handling. The error is shown in the image below.

image

During the troubleshooting process, we found that the code is located here.

This issue only appeared after we upgraded to rspack version v0.7.0.

Reproduce link

No response

Reproduce Steps

The issue can be reproduced immediately using the code from the official website with mf.

@KyrieChen KyrieChen added bug Something isn't working pending triage The issue/PR is currently untouched. labels May 30, 2024
@ckken
Copy link

ckken commented May 30, 2024

+1

@LingyuCoder
Copy link
Collaborator

cc @ahabhgk , this a .js script in @rspack/core, should it transform by tsc?

@LingyuCoder LingyuCoder removed the pending triage The issue/PR is currently untouched. label May 30, 2024
@ckken
Copy link

ckken commented May 30, 2024

Is it possible to provide an implementation option?

@ahabhgk
Copy link
Collaborator

ahabhgk commented May 30, 2024

#6672 The fix will be released in v0.7.1, in v0.7.1 if you have swc-loader/babel-loader to transform your js syntax, then the module federation runtime will also be transformed by your swc-loader/babel-loader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants