Aethel Bot OSS repository! aethel.xyz
bot fun ai discord discord-bot aethel
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: fix imports again!

authored by

Scan and committed by
GitHub
d6b4a7b5 44e64a5a

+7
+7
scripts/fix-imports.js
··· 25 25 return `from '${normalizedPath.replace(/\\/g, '/')}.js'`; 26 26 }); 27 27 28 + content = content.replace(/import\(['"]@\/([^'"]+)['"]\)/g, (match, importPath) => { 29 + const targetPath = path.join('dist', importPath); 30 + const relativePath = path.relative(path.dirname(filePath), targetPath); 31 + const normalizedPath = relativePath.startsWith('.') ? relativePath : `./${relativePath}`; 32 + return `import('${normalizedPath.replace(/\\/g, '/')}.js')`; 33 + }); 34 + 28 35 content = content.replace(/from ['"]\.\/([^'"]+)['"]/g, (match, importPath) => { 29 36 if (importPath.endsWith('.js')) { 30 37 return match;