Content-Length: 977 | pFad | http://github.com/vuejs/vue-loader/pull/1799.patch
thub.com
From cc2088dcfbf6c5b43c9c4b0f6737a6468f132a54 Mon Sep 17 00:00:00 2001
From: Andrew Mackrodt
Date: Wed, 24 Feb 2021 18:14:00 +0000
Subject: [PATCH] feat: allow specifying pad when using @vue/compiler-sfc
---
src/index.ts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/index.ts b/src/index.ts
index ed24c5304..ca4d7c21e 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -45,6 +45,7 @@ export interface VueLoaderOptions {
appendExtension?: boolean
isServerBuild?: boolean
+ pad?: boolean | 'line' | 'space'
}
let errorEmitted = false
@@ -89,11 +90,13 @@ export default function loader(
const isServer = options.isServerBuild ?? target === 'node'
const isProduction = mode === 'production'
+ const pad = options.pad ?? sourceMap
const filename = resourcePath.replace(/\?.*$/, '')
const { descriptor, errors } = parse(source, {
filename,
sourceMap,
+ pad,
})
// cache descriptor
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/vuejs/vue-loader/pull/1799.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy