We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfd45be commit e80a44bCopy full SHA for e80a44b
src/component.ts
@@ -82,7 +82,7 @@ export function componentFactory (
82
83
forwardStaticMembers(Extended, Component, Super)
84
85
- if (reflectionIsSupported()) {
+ if (reflectionIsSupported) {
86
copyReflectionMetadata(Extended, Component)
87
}
88
src/reflect.ts
@@ -1,9 +1,7 @@
1
import Vue, { VueConstructor } from 'vue'
2
import { VueClass } from './declarations'
3
4
-export function reflectionIsSupported () {
5
- return (Reflect && Reflect.defineMetadata) !== undefined
6
-}
+export const reflectionIsSupported = typeof Reflect !== undefined && Reflect.defineMetadata
7
8
export function copyReflectionMetadata (
9
to: VueConstructor,
0 commit comments