perf: quick nop

This commit is contained in:
cha0s 2024-02-13 06:39:31 -06:00
parent fe93664347
commit 307bec869e

View File

@ -42,6 +42,14 @@ module.exports = (program, flecks) => {
watch,
} = opts;
const {build} = coreCommands(program, flecks);
// Check for work.
const [env, argv] = [{}, {mode: production ? 'production' : 'development'}];
const filename = await flecks.resolveBuildConfig('test.webpack.config.js', '@flecks/build');
const config = {test: await require(filename)(env, argv, flecks)};
await flecks.configureBuilds(config, env, argv);
if (!config.entry) {
return undefined;
}
// Remove the previous test(s).
await rimraf(join(FLECKS_CORE_ROOT, 'dist', 'test'));
// Kick off building the test and wait for the file to exist.