@nasti-toolchain/nasti 1.6.3 → 1.6.5

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
@@ -89,6 +89,13 @@ interface BuildConfig {
89
89
  target?: string | string[];
90
90
  rolldownOptions?: Record<string, unknown>;
91
91
  emptyOutDir?: boolean;
92
+ css?: CssConfig;
93
+ }
94
+ interface CssConfig {
95
+ /** CSP nonce to add to inline <style> tags */
96
+ nonce?: string;
97
+ /** Emit CSS as separate files instead of inline injection (CSP-friendly) */
98
+ emitCssFile?: boolean;
92
99
  }
93
100
  interface NastiPlugin {
94
101
  name: string;
@@ -143,6 +150,7 @@ type LoadResult = string | null | undefined | {
143
150
  type TransformResult = string | null | undefined | {
144
151
  code: string;
145
152
  map?: unknown;
153
+ moduleType?: string;
146
154
  };
147
155
  interface EmittedFile {
148
156
  type: 'asset' | 'chunk';
package/dist/index.d.ts CHANGED
@@ -89,6 +89,13 @@ interface BuildConfig {
89
89
  target?: string | string[];
90
90
  rolldownOptions?: Record<string, unknown>;
91
91
  emptyOutDir?: boolean;
92
+ css?: CssConfig;
93
+ }
94
+ interface CssConfig {
95
+ /** CSP nonce to add to inline <style> tags */
96
+ nonce?: string;
97
+ /** Emit CSS as separate files instead of inline injection (CSP-friendly) */
98
+ emitCssFile?: boolean;
92
99
  }
93
100
  interface NastiPlugin {
94
101
  name: string;
@@ -143,6 +150,7 @@ type LoadResult = string | null | undefined | {
143
150
  type TransformResult = string | null | undefined | {
144
151
  code: string;
145
152
  map?: unknown;
153
+ moduleType?: string;
146
154
  };
147
155
  interface EmittedFile {
148
156
  type: 'asset' | 'chunk';