![]() The Loader and ModuleNamespace classes in core/loader-polyfill.js provide the basic spec API method shells for a loader instance loader: Part of the publicly versioned API of this project.Īny tool can be used to build the loader distribution file from these core modules - Rollup is used to do these builds in the example loaders above, provided by the file in the example loader repos listed above. Everything that is exported can be considered ![]() Helper functions are available in core/resolve.js and core/common.js. On top of this main API file isĬore/register-loader.js which provides a base loader class with the non-spec System.register and System.registerDynamic support to enable the exact The minimal polyfill loader API is provided in core/loader-polyfill.js. This project exposes a public API of ES modules in the core folder. Used to run the tests and benchmarks in this project.Ī fast optimized production loader that only loads System.register modules, recreating ES module semantics with CSP support. Some examples of common use case module loaders built with this project are provided below:Ī demonstration-only loader to load ES modules in the browser including support for the tag as specified in HTML.Īllows loading ES modules with CommonJS interop in Node via node-esml module/path.js in line with the current Node See the spec differences section for a detailed description of some of the specification decisions made.ĮS6 Module Loader Polyfill, the previous version of this project was built to the outdated ES6 loader specification and can still be found at the 0.17 branch. This project aims to provide a fast, minimal, unopinionated loader API on top of which custom loaders can easily be built. Of module graphs consisting of inter-dependent ES modules and CommonJS modules with their respective semantics retained. In addition, support for the System.registerDynamic is provided to allow the linking ![]() Supports the loader import and registry API with the System.register module format to provide exact module loading semantics for ES modules in environments today. Provides low-level hooks for creating ES module loaders, roughly based on the API of the WhatWG loader spec,īut with adjustments to match the current proposals for the HTML modules specification, unspecified WhatWG changes, and NodeJS ES module adoption.
0 Comments
Leave a Reply. |