• Pete Miller's avatar
    Use es-modules for chromium core JS... · c824bb8d
    Pete Miller authored
    - cr.js methods now included via es-modules
    - obsolete cr.define converted to simple window property. Removed unused uses of globally-accessible window.xyz.initialize properties
    - removed i18n DOM attributes (i18n-content, i18n-values)
    - importing load_time_data via esmodules is difficult considering strings.m.js must make a request to the module at the same url. webpack needs to be able to also import from the url, but even the latest wepback version is still incapable https://github.com/brave/brave-browser/issues/16182
    - removed often-unused imports (e.g. util.js, promise_resolver.js, i18n_template_no_process)
    c824bb8d