0.8.31 • Published 6 months ago

@pandino/umd-activator-resolver-dom v0.8.31

Weekly downloads
-
License
EPL-2.0
Repository
github
Last release
6 months ago

umd-activator-resolver-dom

build-test license TypeScript

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-Name must be the library name which the bundle registers it self on e.g. the window object in browsers. It can be different compared to the file name.

License

Eclipse Public License - v 2.0

0.8.30

6 months ago

0.8.31

6 months ago

0.8.29

10 months ago

0.8.28

10 months ago

0.8.25

1 year ago

0.8.24

1 year ago

0.8.27

1 year ago

0.8.26

1 year ago

0.8.23

1 year ago

0.8.22

1 year ago

0.8.20

1 year ago

0.8.19

2 years ago

0.8.18

2 years ago