fix: try to add cwd to loadConfig

This commit is contained in:
Ayo Ayco 2024-12-31 01:46:40 +01:00
parent dba6b6ef84
commit a55d669214

View file

@ -25,6 +25,7 @@ export function useMcFlyRoute({ storage }) {
const loadedConfig = await loadConfig({ const loadedConfig = await loadConfig({
name: 'mcfly', name: 'mcfly',
configFile: 'mcfly.config', configFile: 'mcfly.config',
cwd: '.',
}) })
const config = loadedConfig.config ?? { const config = loadedConfig.config ?? {
components: 'js', components: 'js',