0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 00:46:29 +01:00

Merge pull request #1649 from aphitiel/cli-shared

cli: Add option --shared
This commit is contained in:
Rich Harris 2018-08-14 20:18:11 -04:00 committed by GitHub
commit 3e119272cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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) {

View File

@ -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')