juxscript 1.0.79 → 1.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/machinery/compiler.js +2 -1
- package/package.json +1 -1
package/machinery/compiler.js
CHANGED
|
@@ -214,7 +214,6 @@ export async function bundleJuxFilesToRouter(projectRoot, distDir, options = {})
|
|
|
214
214
|
isBundledLocal = true;
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
console.log('217', { importStatement }, { relativePath }, { moduleName }, { isBundledLocal });
|
|
218
217
|
// ONLY add to global imports if it is NOT a local bundled file
|
|
219
218
|
if (!isBundledLocal) {
|
|
220
219
|
allImports.push({ code: importStatement, filePath: relativePath });
|
|
@@ -387,6 +386,8 @@ JuxError.register('${cleanName}', '${relativePath}');
|
|
|
387
386
|
}
|
|
388
387
|
|
|
389
388
|
function resolveImportPath(importPath, currentFilePath) {
|
|
389
|
+
|
|
390
|
+
console.log(`[Resolve] Importing "${importPath}" from "${currentFilePath}"`);
|
|
390
391
|
// ✅ FIX: Handle root-relative imports (start with /)
|
|
391
392
|
if (importPath.startsWith('/')) {
|
|
392
393
|
const resolved = importPath.substring(1).replace(/\\/g, '/');
|