Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit365b67e

Browse files
authored
feat: add sourcemap configuration switch (#833)
1 parentf5a9e0c commit365b67e

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
privaterawOptions: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
exporttypeResolvedOptions=Omit<

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp