rolldown-require 2.0.1 → 2.0.2

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.ts CHANGED
@@ -84,6 +84,12 @@ interface Options {
84
84
  * to skip the default format inference
85
85
  */
86
86
  format?: 'cjs' | 'esm';
87
+ /**
88
+ * Enable source maps for debugging.
89
+ * - `true` will default to inline source maps.
90
+ * - `'inline'` forces inline source maps.
91
+ */
92
+ sourcemap?: boolean | 'inline';
87
93
  /**
88
94
  * Persistent cache for bundled output to speed up repeated loads.
89
95
  */
@@ -92,7 +98,8 @@ interface Options {
92
98
  interface InternalOptions extends Omit<Options, 'cwd' | 'filepath'> {
93
99
  isESM: boolean;
94
100
  format: 'cjs' | 'esm';
95
- tsconfig?: string;
101
+ tsconfig?: string | false;
102
+ sourcemap?: boolean | 'inline';
96
103
  }
97
104
 
98
105
  declare const configDefaults: Readonly<{