|
@@ -68,6 +68,7 @@ async function viteImportMapPlugin(
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
if (options?.debug) {
|
|
if (options?.debug) {
|
|
|
|
|
+ // oxlint-disable-next-line typescript/no-floating-promises
|
|
|
(async () => {
|
|
(async () => {
|
|
|
for await (const { message, type } of generator.logStream()) {
|
|
for await (const { message, type } of generator.logStream()) {
|
|
|
console.log(`${type}: ${message}`);
|
|
console.log(`${type}: ${message}`);
|
|
@@ -138,6 +139,7 @@ async function viteImportMapPlugin(
|
|
|
buildEnd() {
|
|
buildEnd() {
|
|
|
// 未生成importmap时,抛出错误,防止被turbo缓存
|
|
// 未生成importmap时,抛出错误,防止被turbo缓存
|
|
|
if (!installed && !isSSR) {
|
|
if (!installed && !isSSR) {
|
|
|
|
|
+ // oxlint-disable-next-line no-unused-expressions
|
|
|
installError && console.error(installError);
|
|
installError && console.error(installError);
|
|
|
throw new Error('Importmap installation failed.');
|
|
throw new Error('Importmap installation failed.');
|
|
|
}
|
|
}
|