juxscript 1.0.78 → 1.0.79
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
|
@@ -209,11 +209,12 @@ export async function bundleJuxFilesToRouter(projectRoot, distDir, options = {})
|
|
|
209
209
|
// Support relative (./, ../) OR project-root relative (/) imports
|
|
210
210
|
if (moduleName.startsWith('.') || moduleName.startsWith('/')) {
|
|
211
211
|
const resolved = resolveImportPath(moduleName, relativePath);
|
|
212
|
+
|
|
212
213
|
if (bundledPaths.has(resolved)) {
|
|
213
214
|
isBundledLocal = true;
|
|
214
215
|
}
|
|
215
216
|
}
|
|
216
|
-
|
|
217
|
+
console.log('217', { importStatement }, { relativePath }, { moduleName }, { isBundledLocal });
|
|
217
218
|
// ONLY add to global imports if it is NOT a local bundled file
|
|
218
219
|
if (!isBundledLocal) {
|
|
219
220
|
allImports.push({ code: importStatement, filePath: relativePath });
|