From 8f92087e326ebcf4bd7b7f2aecfd002d665cdf22 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Fri, 23 Oct 2020 21:53:52 -0400 Subject: [PATCH] Fix missing default export error Default exports should only be used for CSS modules. --- src/pitcher.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pitcher.ts b/src/pitcher.ts index 579889d18..c55aaf6ef 100644 --- a/src/pitcher.ts +++ b/src/pitcher.ts @@ -68,7 +68,8 @@ export const pitch = function () { const beforeLoaders = loaders.slice(cssLoaderIndex + 1) return genProxyModule( [...afterLoaders, stylePostLoaderPath, ...beforeLoaders], - context + context, + !! query.module ) } }