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
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit3f879f3

Browse files
committed
fix: Add needMap option to disable source maps
1 parent8115b06 commit3f879f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export interface VuePluginOptions {
158158
/**
159159
* Rollup plugin for handling .vue files.
160160
*/
161-
exportdefaultfunctionvue(opts:VuePluginOptions={}):Plugin{
161+
exportdefaultfunctionvue(opts:Partial<VuePluginOptions>={}):Plugin{
162162
constisVue=createVueFilter(opts.include,opts.exclude)
163163
constisProduction=
164164
opts.template&&typeofopts.template.isProduction==='boolean'
@@ -324,7 +324,7 @@ export default function vue(opts: VuePluginOptions = {}): Plugin {
324324
compiler:opts.compiler||templateCompiler,
325325
compilerParseOptions:opts.compilerParseOptions,
326326
sourceRoot:opts.sourceRoot,
327-
needMap:true
327+
needMap:'needMap'inopts ?(optsasany).needMap :true
328328
})
329329
)
330330
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp