heyiam 0.2.18 → 0.2.19
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/dist/export.js +5 -1
- package/dist/mount.js +23199 -0
- package/dist/routes/preview.js +5 -1
- package/package.json +2 -2
package/dist/export.js
CHANGED
|
@@ -465,7 +465,11 @@ function crc32(buf) {
|
|
|
465
465
|
}
|
|
466
466
|
function getInlineMountJs() {
|
|
467
467
|
const thisDir = dirname(fileURLToPath(import.meta.url));
|
|
468
|
-
|
|
468
|
+
// In built dist: dist/mount.js (copied during build)
|
|
469
|
+
// In dev: ../../packages/ui/dist/mount.js (monorepo layout)
|
|
470
|
+
const builtPath = resolve(thisDir, 'mount.js');
|
|
471
|
+
const devPath = resolve(thisDir, '..', '..', 'packages', 'ui', 'dist', 'mount.js');
|
|
472
|
+
const mountPath = existsSync(builtPath) ? builtPath : devPath;
|
|
469
473
|
try {
|
|
470
474
|
return readFileSync(mountPath, 'utf-8');
|
|
471
475
|
}
|