From 21681bf34c6c71396a7d708fc5f10cb334c6b92f Mon Sep 17 00:00:00 2001 From: Efthymis Sarmpanis Date: Wed, 27 Dec 2017 22:52:22 +0200 Subject: [PATCH] Log a warning when disabling two-way binding --- src/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.ts b/src/index.ts index 1caf5b5abc..643d084af5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -109,6 +109,12 @@ export function compile(source: string, _options: CompileOptions) { const options = normalizeOptions(_options); let parsed: Parsed; + if (options.bind === false) { + options.onwarn({ + message: `You have disabled two-way binding for your components! It is highly recommended to enable it!` + }) + } + try { parsed = parse(source, options); } catch (err) {