fix: code workspace path error

This commit is contained in:
vben
2024-06-02 22:13:15 +08:00
parent 30f7472d26
commit 6d4991d852
10 changed files with 86 additions and 6 deletions

View File

@@ -140,7 +140,7 @@ async function viteImportMapPlugin(
// 未生成importmap时抛出错误防止被turbo缓存
if (!installed && !isSSR) {
installError && console.error(installError);
throw new Error('importmap install failed.');
throw new Error('Importmap installation failed.');
}
},
enforce: 'post',

View File

@@ -36,7 +36,7 @@ export async function getEnvConfig(
const env = dotenv.parse(envPath);
envConfig = { ...envConfig, ...env };
} catch (error) {
console.error(`Error in parsing ${confFile}`, error);
console.error(`Error while parsing ${confFile}`, error);
}
}
const reg = new RegExp(`^(${match})`);