0.8.31 • Published 2 years ago
@pandino/umd-activator-resolver-dom v0.8.31
umd-activator-resolver-dom
Activator Resolver supporting UMD modules for browsers.
Context
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).
Usage
Add the Resolver to the Pandino configuration
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();Fill additional Manifest Headers for UMD Bundles
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-Namemust be the library name which the bundle registers it self on e.g. thewindowobject in browsers. It can be different compared to the file name.
License
Eclipse Public License - v 2.0