From d484d0d30f1cdade42304f2eec72d57bf82f2304 Mon Sep 17 00:00:00 2001 From: cha0s Date: Wed, 31 Mar 2021 10:34:47 -0500 Subject: [PATCH] fix: babel recursion --- packages/build/src/build/app.webpack.config.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/build/src/build/app.webpack.config.js b/packages/build/src/build/app.webpack.config.js index a0b4a31..3052529 100644 --- a/packages/build/src/build/app.webpack.config.js +++ b/packages/build/src/build/app.webpack.config.js @@ -12,10 +12,6 @@ const onlyBuilds = LATUS_ONLY_BUILD .map((name) => name.trim()) .filter((e) => e); -R('@babel/register')({ - configFile: LATUS_BABEL_CONFIG, -}); - const gatherConfigs = async () => { const latus = Latus.create(); let configs = latus.invokeReduce('@latus/core/build'); @@ -24,7 +20,7 @@ const gatherConfigs = async () => { ); latus.invokeFlat('@latus/core/build/alter', configs); if (0 === Object.keys(configs).length) { - return; + return {}; } configs = Object.fromEntries( await Promise.all(Object.entries(configs).map(async ([k, v]) => [k, await v])),