Skip to content

Commit

Permalink
fix: make pluginOptions work as documented
Browse files Browse the repository at this point in the history
  • Loading branch information
Guria authored Oct 3, 2019
1 parent cd37690 commit a28710c
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 a28710c

Please sign in to comment.