Lightning Web Runtime :: Custom SystemJS
@webruntime/systemjs is a package which builds a custom bundle of the core SystemJS. The bundle includes the unmodified core SystemJS library, modified SystemJS provided extras, and LWR custom extras.
Custom Bundle
The custom bundle is a built (through Rollup) file consisting of the core SystemJS library, and the extras which the @webruntime/loader requires.
Modifications
-
AMD extra: Modified to support multiple modules in a single file. See
src/extras/amd-webruntime.js
. -
Named register/define extra: Modified to fix unexpected behavior when importing a "named" module. See
src/extras/named-register-webruntime.js
.
Custom Extras
-
src/extras/system-local-webruntime
: Custom extra to hide SystemJS global variables.