Steps to replicate the issue (include links if applicable):
- Go to common.js
- Save something like:
import('https://cdn.jsdelivr.net/...');
- See Parse error: Unexpected: import on line 1 in console
What happens?:
The parser treated it as a ResourceLoader resource and parsed it wrong.
What should have happened instead?:
import() + ^http should not be parsed further.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia): 1.43.x
Other information (browser name/version, screenshots, etc.):