vargai 0.4.0-alpha84 → 0.4.0-alpha85
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/package.json
CHANGED
|
@@ -83,7 +83,7 @@ async function loadComponent(filePath: string): Promise<VargElement> {
|
|
|
83
83
|
|
|
84
84
|
if (hasVargaiImport) {
|
|
85
85
|
const tmpFile = `${tmpDir}/${Date.now()}.tsx`;
|
|
86
|
-
// Resolve
|
|
86
|
+
// Resolve JSX pragma to absolute path so it works from the cache dir
|
|
87
87
|
const runtimeDir = resolve(pkgDir, "src/react/runtime");
|
|
88
88
|
const resolvedSource = source.replace(
|
|
89
89
|
/@jsxImportSource\s+vargai/,
|