Activator Resolver supporting UMD modules for browsers.
This package is part of the pandino-root monorepo. For detailed information about what is Pandino / how this package fits into the ecosystem, please consult with the related documentation(s).
import loaderConfiguration from 'https://unpkg.com/@pandino/loader-configuration-dom/dist/loader-configuration-dom.mjs';
import umdActivatorResolver from 'https://unpkg.com/@pandino/umd-activator-resolver-dom/dist/umd-activator-resolver-dom.mjs';
import Pandino from 'https://unpkg.com/@pandino/pandino/dist/esm/pandino.mjs';
const pandino = new Pandino({
...loaderConfiguration,
'pandino.activator.resolvers': {
'umd': umdActivatorResolver,
},
});
await pandino.init();
await pandino.start();
Every UMD Bundle MUST provide the following Manifest Headers:
- Bundle-Type:
'umd'
- Bundle-UMD-Name:
string
Example:
{
"Bundle-SymbolicName": "@scope/my-umd-bundle",
"Bundle-Version": "1.0.0",
"Bundle-Activator": "./my-umd-bundle.js",
"Bundle-Type": "umd",
"Bundle-UMD-Name": "MyUMDBundle"
}
The
Bundle-UMD-Name
must be the library name which the bundle registers it self on e.g. thewindow
object in browsers. It can be different compared to the file name.
Eclipse Public License - v 2.0