Skip to content

Commit 3509d62

Browse files
committed
v2.1.2
1 parent f3313c1 commit 3509d62

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.1.2](https://github.com/metonym/svelte-readme/releases/tag/v2.1.2) - 2020-12-31
9+
10+
- Initializ default parameter value in `createConfig`
11+
812
## [2.1.1](https://github.com/metonym/svelte-readme/releases/tag/v2.1.1) - 2020-12-30
913

1014
- Default `svelte.emitCss` to `false`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svelte-readme",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"license": "MIT",
55
"description": "Develop and demo your Svelte components in your README.md",
66
"author": "Eric Liu (https://github.com/metonym)",

src/createConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ interface CreateConfigOptions {
128128
output: OutputOptions;
129129
}
130130

131-
export default function createConfig(opts: Partial<CreateConfigOptions>): InputOptions {
131+
export default function createConfig(opts: Partial<CreateConfigOptions> = {}): InputOptions {
132132
const DEV = process.env.ROLLUP_WATCH === "true";
133133
const minify = opts.minify === true || !DEV;
134134
const pkg = getPackageJSON();

0 commit comments

Comments
 (0)