Update js/utils/urls.es6.js to use ES6 modules.

Review Request #12779 — Created Jan. 10, 2023 and submitted

Information

Djblets
release-4.x

Reviewers

This simply updates js/utils/urls.es6.js to use export rather than
setting content in the Djblets namespace, and re-exports that in
js/utils/index.ts.

This change was used as part of the tests for ES6 modules and Rollup.js,
and can serve as a simple example for new code going forward.

Tested pages using functions here, and didn't see any problems. Verified
that the generated JavaScript for the bundle was setting the functions in
Djblets as before (though through the bundle IIFE).

Summary ID
Update js/utils/urls.es6.js to use ES6 modules.
This simply updates `js/utils/urls.es6.js` to use `export` rather than setting content in the `Djblets` namespace, and re-exports that in `js/utils/index.ts`. This change was used as part of the tests for ES6 modules and Rollup.js, and can serve as a simple example for new code going forward.
9b5cbfd6a47cc9adde239c687a8fceb24121748c
maubin
  1. Ship It!
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-4.x (707b26d)