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:
commit
3e119272cf
@ -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) {
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user