Skip to content

Commit

Permalink
fix: use default value for options
Browse files Browse the repository at this point in the history
  • Loading branch information
yarastqt committed May 9, 2020
1 parent 2ce1248 commit dda2f26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Formats = {
}

export const formats: Formats = {
'css.flat': (platforms, options) => {
'css.flat': (platforms, options = {}) => {
const result = []
for (const platform in platforms) {
const layers = platforms[platform]
Expand All @@ -29,7 +29,7 @@ export const formats: Formats = {
}
return result
},
'css.whitepaper': (platforms, options) => {
'css.whitepaper': (platforms, options = {}) => {
const result = []
for (const platform in platforms) {
const layers = platforms[platform]
Expand All @@ -43,7 +43,7 @@ export const formats: Formats = {
}
return result
},
'json.whitepaper': (platforms, options) => {
'json.whitepaper': (platforms, options = {}) => {
const result = []
for (const platform in platforms) {
const layers = platforms[platform]
Expand All @@ -57,7 +57,7 @@ export const formats: Formats = {
}
return result
},
'js.esm': (platforms, options) => {
'js.esm': (platforms, options = {}) => {
const result = []
for (const platform in platforms) {
const layers = platforms[platform]
Expand Down

0 comments on commit dda2f26

Please sign in to comment.