1.0.3 • Published 5 months ago

@roenlie/reflect-metadata v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Reflect-Metadata

Partial implementation of TC39 reflect-metadata. Primarily for use as a lightweight and function activated implementation shim to the proposal.

Manual activation

.ts/.js

import { useReflectMetadata } from '@roenlie/reflect-metadata';

useReflectMetadata();

.html

<script type="module">
	import { useReflectMetadata } from '@roenlie/reflect-metadata';

	useReflectMetadata();
</script>

Automatic activation

.ts/.js

import '@roenlie/reflect-metadata/use';

.html

<script type="module" src="@roenlie/reflect-metadata/use"></script>

Repeated calls to useReflectMetadata will have no effect. If any of the methods being shimmed already exists from a different reflect-metadata shim, existing implementation will not be overriden.

Approximately 3.2kb not-minified, 1.70kb minified, 0.70kb gzipped.

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago