Skip to content

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 like import * as System from 'system' do not allow you to override functions (and don't expose overriden functions from import System from 'system' or imports.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 so environment.js isn't exporting utilities
  • Split dependency versioning into a new file, dependencies.js
Edited by Evan Welsh

Merge request reports