From 7f870dae953dab7f4c5df2699b3c8e5d68017463 Mon Sep 17 00:00:00 2001 From: pk Date: Mon, 13 Aug 2018 15:58:11 +0200 Subject: [PATCH] cli: Add option --shared --- src/cli/compile.ts | 3 ++- src/cli/index.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli/compile.ts b/src/cli/compile.ts index 0b145be1e0..045080a398 100644 --- a/src/cli/compile.ts +++ b/src/cli/compile.ts @@ -49,7 +49,8 @@ export function compile(input, opts) { immutable: opts.immutable, generate: opts.generate || 'dom', customElement: opts.customElement, - store: opts.store + store: opts.store, + shared: opts.shared }; if (isDir) { diff --git a/src/cli/index.ts b/src/cli/index.ts index 385dc42a6e..82d19c18f0 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -16,6 +16,7 @@ prog .option('--generate', 'Change generate format between `dom` and `ssr`') .option('--no-css', `Don't include CSS (useful with SSR)`) .option('--immutable', 'Support immutable data structures') + .option('--shared', 'Don\'t include shared helpers') .example('compile App.html > App.js') .example('compile src -o dest')