0.0.2 • Published 8 months ago

@formatd/component-loader v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

:warning: Pre Release

FormatD.ComponentLoader

An easy way to load Javascript for fusion components

Compatibility

Versioning scheme:

 1.0.0 
 | | |
 | | Bugfix Releases (non breaking)
 | Neos Compatibility Releases (non breaking)
 Feature Releases (breaking)

Releases and compatibility:

Package-VersionNeos CMS Version
1.0.x7.x and newer

Create a component manager:

export default class MyComponentManager extends AbstractComponentManager {
	initialize(domSection: HTMLElement) {
		console.log("Hello World")
	}
}

Include the corresponding files

import {componentLoader} from formatd-component-loader;

componentLoader.addDefaultImport('Vendor.Website:MyComponent', () => import('../private/Fusion/MyComponent'));
//...
componentLoader.initialize()
0.0.2

8 months ago

0.0.1

8 months ago