diff --git a/src/cli/compile.ts b/src/cli/compile.ts index 0b145be1e04f..045080a398e6 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 385dc42a6eaf..82d19c18f0e8 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')