From a0848342c22309c797b38897dea5cd280fcd1940 Mon Sep 17 00:00:00 2001 From: Lucien PESLIER Date: Sun, 16 Jan 2022 05:50:44 +0100 Subject: [PATCH] fix(treeshakable): use es5 syntax for treeshakable object (#177) * fix(treeshakable): use es5 syntax for treeshakable object * resolve conflicts Co-authored-by: Anton Kudryavtsev --- src/loaders/postcss/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loaders/postcss/index.ts b/src/loaders/postcss/index.ts index 3f8ce3d2..746d0f07 100644 --- a/src/loaders/postcss/index.ts +++ b/src/loaders/postcss/index.ts @@ -194,7 +194,7 @@ const loader: Loader = { getters += `get ${name}() { ${injectorCallOnce} return ${value}; },\n`; } - getters += `inject() { ${injectorCallOnce} },`; + getters += `inject: function inject() { ${injectorCallOnce} },`; output.push(`var ${modulesVarName} = {${getters}};`); } }