@nasti-toolchain/nasti 2.4.2 → 2.4.4

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/index.d.cts CHANGED
@@ -150,6 +150,17 @@ interface VueEnvironmentOptions {
150
150
  script?: Partial<SFCScriptCompileOptions>;
151
151
  template?: Partial<SFCTemplateCompileOptions>;
152
152
  style?: Partial<SFCAsyncStyleCompileOptions>;
153
+ /**
154
+ * Vue 编译特性开关。
155
+ *
156
+ * `vapor`:将可强制进入 Vapor Mode 的 SFC(`<script setup>` / 纯 template)
157
+ * 统一按 Vapor 编译。单文件仍可通过 `<script setup vapor>` / `<template vapor>`
158
+ * 按需 opt-in。需要 `@vue/compiler-sfc` ≥ 3.6。
159
+ * @experimental
160
+ */
161
+ features?: {
162
+ vapor?: boolean;
163
+ };
153
164
  transformSfc?: VueSfcSourceTransform;
154
165
  transformTemplate?: VueSfcSourceTransform;
155
166
  transformStyle?: VueSfcSourceTransform;
@@ -800,6 +811,13 @@ declare class ModuleGraph {
800
811
  getModuleByUrl(url: string): ModuleNode | undefined;
801
812
  getModuleById(id: string): ModuleNode | undefined;
802
813
  getModulesByFile(file: string): Set<ModuleNode> | undefined;
814
+ /**
815
+ * Modules whose registered entry file lives under `dir` (inclusive).
816
+ * Used when a non-entry source inside a prebundled workspace package changes:
817
+ * only the package entry was registered, so getModulesByFile(changedFile)
818
+ * misses — we invalidate every /@modules entry rooted in that package.
819
+ */
820
+ getModulesWithFileUnder(dir: string): Set<ModuleNode>;
803
821
  ensureEntryFromUrl(url: string): Promise<ModuleNode>;
804
822
  createModule(url: string, id?: string): ModuleNode;
805
823
  /** 注册文件路径到模块的映射 */
package/dist/index.d.ts CHANGED
@@ -150,6 +150,17 @@ interface VueEnvironmentOptions {
150
150
  script?: Partial<SFCScriptCompileOptions>;
151
151
  template?: Partial<SFCTemplateCompileOptions>;
152
152
  style?: Partial<SFCAsyncStyleCompileOptions>;
153
+ /**
154
+ * Vue 编译特性开关。
155
+ *
156
+ * `vapor`:将可强制进入 Vapor Mode 的 SFC(`<script setup>` / 纯 template)
157
+ * 统一按 Vapor 编译。单文件仍可通过 `<script setup vapor>` / `<template vapor>`
158
+ * 按需 opt-in。需要 `@vue/compiler-sfc` ≥ 3.6。
159
+ * @experimental
160
+ */
161
+ features?: {
162
+ vapor?: boolean;
163
+ };
153
164
  transformSfc?: VueSfcSourceTransform;
154
165
  transformTemplate?: VueSfcSourceTransform;
155
166
  transformStyle?: VueSfcSourceTransform;
@@ -800,6 +811,13 @@ declare class ModuleGraph {
800
811
  getModuleByUrl(url: string): ModuleNode | undefined;
801
812
  getModuleById(id: string): ModuleNode | undefined;
802
813
  getModulesByFile(file: string): Set<ModuleNode> | undefined;
814
+ /**
815
+ * Modules whose registered entry file lives under `dir` (inclusive).
816
+ * Used when a non-entry source inside a prebundled workspace package changes:
817
+ * only the package entry was registered, so getModulesByFile(changedFile)
818
+ * misses — we invalidate every /@modules entry rooted in that package.
819
+ */
820
+ getModulesWithFileUnder(dir: string): Set<ModuleNode>;
803
821
  ensureEntryFromUrl(url: string): Promise<ModuleNode>;
804
822
  createModule(url: string, id?: string): ModuleNode;
805
823
  /** 注册文件路径到模块的映射 */