add `sveltePath` to readme

pull/1953/head
Conduitry 7 years ago
parent 0b32f999a6
commit 01cb6c6920

@ -83,6 +83,7 @@ The Svelte compiler optionally takes a second argument, an object of configurati
| `format` | `'esm'`, `'cjs'` | The format to output in the compiled component.<br>`'esm'` - ES6/ES2015 module, suitable for consumption by a bundler<br>`'cjs'` - CommonJS module | `'esm'` | | `format` | `'esm'`, `'cjs'` | The format to output in the compiled component.<br>`'esm'` - ES6/ES2015 module, suitable for consumption by a bundler<br>`'cjs'` - CommonJS module | `'esm'` |
| `name` | `string` | The name of the constructor in the compiled component. | `'SvelteComponent'` | | `name` | `string` | The name of the constructor in the compiled component. | `'SvelteComponent'` |
| `filename` | `string` | The filename to use in sourcemaps and compiler error and warning messages. | `'SvelteComponent.html'` | | `filename` | `string` | The filename to use in sourcemaps and compiler error and warning messages. | `'SvelteComponent.html'` |
| `sveltePath` | `string` | The path to the root of the package used in `import`s generated by the compiler. | `'svelte'` |
| `preserveComments` | `boolean` | Include comments in rendering. Currently, only applies to SSR rendering. | `false` | | `preserveComments` | `boolean` | Include comments in rendering. Currently, only applies to SSR rendering. | `false` |
### Preprocessor options ### Preprocessor options

Loading…
Cancel
Save