@creact-labs/creact 0.2.4 → 0.2.5
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/cli.js +4 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -48,7 +48,10 @@ async function runEntrypoint(entrypoint) {
|
|
|
48
48
|
// FIXME: Cache-busting causes memory leak as old modules stay in V8 cache.
|
|
49
49
|
// Acceptable for dev watch mode, but consider worker threads for long sessions.
|
|
50
50
|
const cacheBustUrl = `${url}?t=${Date.now()}`;
|
|
51
|
-
const module = await tsImport(cacheBustUrl,
|
|
51
|
+
const module = await tsImport(cacheBustUrl, {
|
|
52
|
+
parentURL: import.meta.url,
|
|
53
|
+
tsconfig: resolve(dirname(entrypoint), 'tsconfig.json'),
|
|
54
|
+
});
|
|
52
55
|
if (typeof module.default === 'function') {
|
|
53
56
|
await module.default();
|
|
54
57
|
}
|