Skip to main content

Modules

HubX is built on the concept of ES6 modules and import maps.

ES6 Modules are the standardized format used for writing JavaScript code. They provide a syntax to define a set of related group of functions and related data which can be imported and exported as a single unit.

Import maps allow developers to control how modules are resolved within an application. Import maps enable more advanced features like aliasing, mapping dependencies and customizing module resolution. It allows developers to better manage their code and improve the performance of the application by specifying the correct paths for modules.