From e0ee667223f366e45f91cf17d8275f9602d0d319 Mon Sep 17 00:00:00 2001 From: yarastqt Date: Thu, 28 Oct 2021 12:38:12 +0300 Subject: [PATCH] fix: return config after patch --- lib/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index 1a627a8..7f2c6cb 100644 --- a/lib/index.js +++ b/lib/index.js @@ -51,15 +51,14 @@ function withGlobalCss() { return (nextConfig) => { const config = { webpack: (config, { isServer }) => { - patchWebpackConfig(config, { isServer }) + return patchWebpackConfig(config, { isServer }) }, } return { ...nextConfig, ...config } } } - module.exports = { withGlobalCss, - patchWebpackConfig + patchWebpackConfig, }