Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 3f879f3

Browse files
committed
fix: Add needMap option to disable source maps
1 parent 8115b06 commit 3f879f3

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-
export default function vue(opts: VuePluginOptions = {}): Plugin {
161+
export default function vue(opts: Partial<VuePluginOptions> = {}): Plugin {
162162
const isVue = createVueFilter(opts.include, opts.exclude)
163163
const isProduction =
164164
opts.template && typeof opts.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' in opts ? (opts as any).needMap : true
328328
})
329329
)
330330
)

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