Skip to content

Commit 365b67e

Browse files
authored
feat: add sourcemap configuration switch (#833)
1 parent f5a9e0c commit 365b67e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/core/context.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

src/types.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

203210
export type ResolvedOptions = Omit<

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy