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 {
3939 private rawOptions : Options ,
4040 ) {
4141 this . options = resolveOptions ( rawOptions , this . root )
42+ this . sourcemap = rawOptions . sourcemap ?? true
4243 this . generateDeclaration = throttle ( 500 , this . _generateDeclaration . bind ( this ) , { noLeading : false } )
4344 this . setTransformer ( this . options . transformer )
4445 }
Original file line number Diff line number Diff line change @@ -198,6 +198,13 @@ export interface Options {
198198 * Vue version of project. It will detect automatically if not specified.
199199 */
200200 version ?: 2 | 2.7 | 3
201+
202+ /**
203+ * Generate sourcemap for the transformed code.
204+ *
205+ * @default true
206+ */
207+ sourcemap ?: boolean
201208}
202209
203210export type ResolvedOptions = Omit <
You can’t perform that action at this time.
0 commit comments