We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5a9e0c commit 365b67eCopy full SHA for 365b67e
src/core/context.ts
@@ -39,6 +39,7 @@ export class Context {
39
private rawOptions: Options,
40
) {
41
this.options = resolveOptions(rawOptions, this.root)
42
+ this.sourcemap = rawOptions.sourcemap ?? true
43
this.generateDeclaration = throttle(500, this._generateDeclaration.bind(this), { noLeading: false })
44
this.setTransformer(this.options.transformer)
45
}
src/types.ts
@@ -198,6 +198,13 @@ export interface Options {
198
* Vue version of project. It will detect automatically if not specified.
199
*/
200
version?: 2 | 2.7 | 3
201
+
202
+ /**
203
+ * Generate sourcemap for the transformed code.
204
+ *
205
+ * @default true
206
+ */
207
+ sourcemap?: boolean
208
209
210
export type ResolvedOptions = Omit<
0 commit comments