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

Commit

Permalink
fix: Add needMap option to disable source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
znck committed Feb 20, 2019
1 parent 8115b06 commit 3f879f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export interface VuePluginOptions {
/**
* Rollup plugin for handling .vue files.
*/
export default function vue(opts: VuePluginOptions = {}): Plugin {
export default function vue(opts: Partial<VuePluginOptions> = {}): Plugin {
const isVue = createVueFilter(opts.include, opts.exclude)
const isProduction =
opts.template && typeof opts.template.isProduction === 'boolean'
Expand Down Expand Up @@ -324,7 +324,7 @@ export default function vue(opts: VuePluginOptions = {}): Plugin {
compiler: opts.compiler || templateCompiler,
compilerParseOptions: opts.compilerParseOptions,
sourceRoot: opts.sourceRoot,
needMap: true
needMap: 'needMap' in opts ? (opts as any).needMap : true
})
)
)
Expand Down

0 comments on commit 3f879f3

Please sign in to comment.