8

When creating an answer to the question, I drew attention to the incorrect formatting of the JS code via "Tidy" in "Code Snippet" when using "dynamic import" in the code.

For example, take an example from MDN using await and dynamic import():

let module = await import('/modules/my-module.js');

If we click "Tidy" in the Code Sandbox, this code is converted to:

let module = await
import ('/modules/my-module.js');

The bug is probably not dangerous and you can manually correct the code after formatting, but I think it's worth paying attention to it.

Thank you for your attention.

1

0

You must log in to answer this question.

Browse other questions tagged .