Convert CommonJS modules to ES modules
Background
Currently our code that is bundled and shipped uses CommonJS module notation, while modules became part of the JavaScript language whith ES6, and the respective syntax has been supported for a while by webpack.
What to change
Replace require
and exports
(CommonJS) in bundled code with import
and export
statements (ES module syntax).
Edited by Sebastian Noack