@nasti-toolchain/nasti 1.6.2 → 1.6.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
@@ -99,6 +99,12 @@ interface NastiPlugin {
99
99
  }) => boolean);
100
100
  buildStart?: (this: PluginContext) => void | Promise<void>;
101
101
  buildEnd?: (this: PluginContext, error?: Error) => void | Promise<void>;
102
+ /**
103
+ * Called once after `bundle.close()` in production builds, mirroring Rollup/Vite semantics.
104
+ * Plugins use this to emit final-stage artifacts that depend on the bundle being fully written
105
+ * (PWA manifests, service workers, sitemaps, etc.). Not invoked in dev.
106
+ */
107
+ closeBundle?: (this: PluginContext, error?: Error) => void | Promise<void>;
102
108
  resolveId?: (this: PluginContext, source: string, importer: string | undefined, options: ResolveIdOptions) => ResolveIdResult | Promise<ResolveIdResult>;
103
109
  load?: (this: PluginContext, id: string) => LoadResult | Promise<LoadResult>;
104
110
  transform?: (this: PluginContext, code: string, id: string) => TransformResult | Promise<TransformResult>;
package/dist/index.d.ts CHANGED
@@ -99,6 +99,12 @@ interface NastiPlugin {
99
99
  }) => boolean);
100
100
  buildStart?: (this: PluginContext) => void | Promise<void>;
101
101
  buildEnd?: (this: PluginContext, error?: Error) => void | Promise<void>;
102
+ /**
103
+ * Called once after `bundle.close()` in production builds, mirroring Rollup/Vite semantics.
104
+ * Plugins use this to emit final-stage artifacts that depend on the bundle being fully written
105
+ * (PWA manifests, service workers, sitemaps, etc.). Not invoked in dev.
106
+ */
107
+ closeBundle?: (this: PluginContext, error?: Error) => void | Promise<void>;
102
108
  resolveId?: (this: PluginContext, source: string, importer: string | undefined, options: ResolveIdOptions) => ResolveIdResult | Promise<ResolveIdResult>;
103
109
  load?: (this: PluginContext, id: string) => LoadResult | Promise<LoadResult>;
104
110
  transform?: (this: PluginContext, code: string, id: string) => TransformResult | Promise<TransformResult>;