diff --git a/README.md b/README.md index 7a66f36d16..4648a50466 100644 --- a/README.md +++ b/README.md @@ -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.
`'esm'` - ES6/ES2015 module, suitable for consumption by a bundler
`'cjs'` - CommonJS module | `'esm'` | | `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'` | +| `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` | ### Preprocessor options