]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix: ensure consistent behavior in dev/prod
authorEvan You <yyx990803@gmail.com>
Wed, 26 Sep 2018 15:29:55 +0000 (11:29 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 26 Sep 2018 15:29:55 +0000 (11:29 -0400)
packages/core/src/optional/context.ts

index b7a5adc6d210b2adc215024791376a4c603e179c..c04eb228e10412f616d66205add8c1798335a140 100644 (file)
@@ -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
     }
   }
 }