You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
This code pattern is smelly but when mixing import and require and when targeting AMD then a normal AMD dependency should be inserted
Input code
Config
Playground link
https://play.swc.rs/?version=1.2.197&code=H4sIAAAAAAAAA8vMLcgvKlFILC5OBVK2CkWphaWZRaka6hARdU1rLi4IU6OkqDRV0xoAPEEBujEAAAA%3D&config=H4sIAAAAAAAAA0WOTQ6DQAhG70JcNmpceoPewc1kxL84wwQw1RjvXqzR7sjj%2Bx7skIkfMDioYVBNdVFMQjG%2FoCgx5sR9IR%2FPHl6Aq5%2BXFi3dNPkkmaFJPNQ7JMeCfE6yRXWrRXRLKJ7HpBZTMdS5WfAFLXpiZ3KBWnnBw9aOe1QroVRlVVphJhJ8KmGMY7edek8hMYr8Vy728508zBWoXU6w%2Fz4wpwutCSO9oyJTeo7e0qv5BTnH4YgMAQAA
Expected behavior
The
assert
dependency should be a normal, async AMD dependency, not a sync-require statement, see TS-playrground: https://www.typescriptlang.org/play?module=2#code/JYWwDg9gTgLgBAQwM5IKazgXjlVBHAV2FwAoByZNWMgSgG4AoBy9GEmKA1eoAActual behavior
No response
Version
1.2.197
Additional context
related to microsoft/vscode#150025
The text was updated successfully, but these errors were encountered: