File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ export class Context {
39
39
private rawOptions : Options ,
40
40
) {
41
41
this . options = resolveOptions ( rawOptions , this . root )
42
+ this . sourcemap = rawOptions . sourcemap ?? true
42
43
this . generateDeclaration = throttle ( 500 , this . _generateDeclaration . bind ( this ) , { noLeading : false } )
43
44
this . setTransformer ( this . options . transformer )
44
45
}
Original file line number Diff line number Diff line change @@ -198,6 +198,13 @@ export interface Options {
198
198
* Vue version of project. It will detect automatically if not specified.
199
199
*/
200
200
version ?: 2 | 2.7 | 3
201
+
202
+ /**
203
+ * Generate sourcemap for the transformed code.
204
+ *
205
+ * @default true
206
+ */
207
+ sourcemap ?: boolean
201
208
}
202
209
203
210
export type ResolvedOptions = Omit <
You can’t perform that action at this time.
0 commit comments