Skip to content

Commit

Permalink
Merge pull request #6 from Guria/patch-1
Browse files Browse the repository at this point in the history
fix: make pluginOptions work as documented
  • Loading branch information
jedmao authored Oct 10, 2019
2 parents cd37690 + a28710c commit 6d05b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function transformBabelLoader(loader, pluginOptions) {
const presets = options.presets || []
options.presets = presets
const { babelOptions, ...linariaOptions } =
(pluginOptions || cosmiconfig('linaria').searchSync() || {}).config || {}
pluginOptions || (cosmiconfig('linaria').searchSync() || {}).config || {}

return {
test: loader.test,
Expand Down

0 comments on commit 6d05b6a

Please sign in to comment.