From 5e5dd7b44cf6892d0f513e10585ab54930ec3412 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 26 Sep 2018 11:29:55 -0400 Subject: [PATCH] fix: ensure consistent behavior in dev/prod --- packages/core/src/optional/context.ts | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/packages/core/src/optional/context.ts b/packages/core/src/optional/context.ts index b7a5adc6..c04eb228 100644 --- a/packages/core/src/optional/context.ts +++ b/packages/core/src/optional/context.ts @@ -36,16 +36,14 @@ export class Provide extends Component { } } -if (__DEV__) { - Provide.options = { - props: { - id: { - type: [String, Symbol], - required: true - }, - value: { - required: true - } +Provide.options = { + props: { + id: { + type: [String, Symbol], + required: true + }, + value: { + required: true } } }