Use ESM Scripts as default
Updates editor to generate ESM (.mjs) scripts as the default when no file suffix is given
Lets not do this like that please, as this is alienating existing proejcts.
- It should be a project setting, that sets the default.
- For all current projects that people use, it should be ".js", so they don't get surprised why it started creating a new templates, especially with behavior changes associated with it.
- New created projects can have "ESM Scripts" on by default.
- Developer should have a choice to switch to a new system, if they want, but not forced with the current projects.
I'm for that. I think there was consensus on just switching it over. @slimbuck @willeastcott Any thoughts here?
Please don't do that again: this will break peoples code, and forces developers with existing projects to make extra movement: type ".js" in places. Which is completely unnecessary reduction of UX.
Also, ESM still not fully polished and tested, so it is best to have only new projects set to ESM by default, so developers can test, catch all the issues with it, until it is considered as a "default" way of coding.
This is especially important, as mixing the script types in one project - is definitely not smooth process atm.