@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/cli.cjs +197 -82
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +187 -72
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +254 -139
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +243 -128
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
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';
|