@navecss/core 0.4.0 → 0.6.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/dist/vite.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AtomDefinition } from './atoms.js';
2
- import { U as UsedAtomOptions } from './vite-options-D1-hGA9L.js';
3
- import './atom-names-2OreuBx9.js';
2
+ import { UsedAtomOptions } from './collect.js';
3
+ import './atom-names-B8Ud-7zD.js';
4
4
 
5
5
  /**
6
6
  * The few shapes of Vite's (and Rollup's) own objects the plugin touches, declared here rather
@@ -70,6 +70,9 @@ interface BuilderLike {
70
70
  interface EnvironmentLike {
71
71
  readonly name: string;
72
72
  readonly config: {
73
+ readonly build?: {
74
+ readonly emitAssets?: boolean;
75
+ };
73
76
  readonly command?: string;
74
77
  readonly consumer: string;
75
78
  readonly inlineConfig?: object;
@@ -215,6 +218,19 @@ interface BundleEntry {
215
218
  readonly type: string;
216
219
  readonly fileName: string;
217
220
  readonly source?: string | Uint8Array;
221
+ /**
222
+ * The names an asset was emitted under, and the files it was made from: they survive a
223
+ * renaming of the file.
224
+ */
225
+ readonly names?: readonly string[];
226
+ readonly originalFileNames?: readonly string[];
227
+ /**
228
+ * What a chunk holds, and the stylesheets it imports.
229
+ */
230
+ readonly modules?: Readonly<Record<string, unknown>>;
231
+ readonly viteMetadata?: {
232
+ readonly importedCss?: ReadonlySet<string>;
233
+ };
218
234
  }
219
235
  interface TransformResultLike {
220
236
  readonly code: string;
@@ -234,6 +250,10 @@ interface NaveCollectPlugin {
234
250
  readonly transformIndexHtml: HtmlHook;
235
251
  buildStart(this: RenderContext): Promise<void>;
236
252
  buildEnd(this: RenderContext, error?: unknown): Promise<void>;
253
+ readonly generateBundle: {
254
+ handler(this: BundleContext, options: unknown, bundle: Record<string, BundleEntry>): void;
255
+ readonly order: 'pre';
256
+ };
237
257
  }
238
258
 
239
259
  /**
@@ -365,4 +385,5 @@ type NavePlugins = [NaveVitePlugin, NaveCollectPlugin];
365
385
  */
366
386
  declare function navePlugin(options?: NaveViteOptions): NavePlugins;
367
387
 
368
- export { type NavePlugins, type NaveViteOptions, type NaveVitePlugin, navePlugin as default, navePlugin };
388
+ export { navePlugin as default, navePlugin };
389
+ export type { NavePlugins, NaveViteOptions, NaveVitePlugin };