js: Port environment initialization to ES modules
environment.js
can be migrated to be a module once our tests are migrated, this MR...
-
Migrates tests to be modules -
Migrates utilities out of environment.js
-
clearDateCaches
override - Star ES imports likeimport * as System from 'system'
do not allow you to override functions (and don't expose overriden functions fromimport System from 'system'
orimports.system
), we should generally use utilities instead of overrides like this to avoid hidden footguns where you can import a not-overriden version. -
Move adjustAnimationTime
to utils file soenvironment.js
isn't exporting utilities
-
-
Split dependency versioning into a new file, dependencies.js
Edited by Evan Welsh