From a28710c80c4c0eb4e48918f841b6574fb64dcd61 Mon Sep 17 00:00:00 2001 From: Aleksei Gurianov Date: Thu, 3 Oct 2019 21:01:56 +0400 Subject: [PATCH] fix: make pluginOptions work as documented --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 07aaf12..3c9fedd 100644 --- a/src/index.js +++ b/src/index.js @@ -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,