@fictjs/compiler 0.13.0 → 0.15.0
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/README.md +3 -0
- package/dist/index.cjs +468 -348
- package/dist/index.js +468 -348
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -56,6 +56,9 @@ createFictPlugin({
|
|
|
56
56
|
- `'auto'` (default): writes metadata to cache directory (not source tree) only when no external metadata store/resolver is provided.
|
|
57
57
|
- `moduleMetadataCacheDir` (default: `<cwd>/.fict-cache/metadata`): cache directory used by `emitModuleMetadata: 'auto'`.
|
|
58
58
|
- `moduleMetadata` / `resolveModuleMetadata`: external metadata integration hooks. When provided, `'auto'` does not write metadata files.
|
|
59
|
+
- Built-in metadata resolution only covers local filesystem modules (relative/absolute paths + configured alias/ts resolution from the caller).
|
|
60
|
+
- Bare package imports are treated as opaque unless your `resolveModuleMetadata` hook provides metadata.
|
|
61
|
+
- Cross-module metadata lookup does not perform cycle detection; cyclical hook metadata chains should be handled by a custom resolver if needed.
|
|
59
62
|
- `reactiveScopes`: function names whose **first callback argument** is treated as a component-like reactive scope.
|
|
60
63
|
- Only **direct calls** are recognized (e.g., `renderHook(() => ...)` or `utils.renderHook(() => ...)`).
|
|
61
64
|
- **Aliases/indirect calls** are not recognized (e.g., `const rh = renderHook; rh(() => ...)`).
|