cmd-johnson / deno-reflect-metadata

A Deno-compatible copy of the TypeScript Metadata Reflection API my Microsoft
Apache License 2.0
11 stars 4 forks source link

Fix Reflection API not working with `deno bundle` #2

Closed cmd-johnson closed 3 years ago

cmd-johnson commented 3 years ago

See issue #1

The IIFE responsible for initializing the global.Reflect object was not included in bundles created by deno bundle. Moving the IIFE declaration along with the non-exported declarations used in Reflect.ts outside the exported Reflect namespace declaration appears to fix this issue.