Skip to content

Commit b6cfadd

Browse files
author
Franck Freiburger
committed
chore(core): split long lines
1 parent 3a56780 commit b6cfadd

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

src/createVue2SFCModule.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,20 @@ export async function createSFCModule(source : string, filename : AbstractPath,
6969

7070
const component = {};
7171

72-
const { delimiters, whitespace, moduleCache, compiledCache, getResource, addStyle, log, additionalBabelParserPlugins = [], additionalBabelPlugins = {}, customBlockHandler, devMode = false, createCJSModule } = options;
72+
const {
73+
delimiters,
74+
whitespace,
75+
moduleCache,
76+
compiledCache,
77+
getResource,
78+
addStyle,
79+
log,
80+
additionalBabelParserPlugins = [],
81+
additionalBabelPlugins = {},
82+
customBlockHandler,
83+
devMode = false,
84+
createCJSModule
85+
} = options;
7386

7487
const descriptor = sfc_parse({
7588
source,

src/createVue3SFCModule.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,21 @@ export async function createSFCModule(source : string, filename : AbstractPath,
6767

6868
const component : { [key: string]: any } = {};
6969

70-
const { delimiters, whitespace, isCustomElement, moduleCache, compiledCache, getResource, addStyle, log, additionalBabelParserPlugins = [], additionalBabelPlugins = {}, customBlockHandler, devMode = false, createCJSModule } = options;
70+
const {
71+
delimiters,
72+
whitespace,
73+
isCustomElement,
74+
moduleCache,
75+
compiledCache,
76+
getResource,
77+
addStyle,
78+
log,
79+
additionalBabelParserPlugins = [],
80+
additionalBabelPlugins = {},
81+
customBlockHandler,
82+
devMode = false,
83+
createCJSModule
84+
} = options;
7185

7286
// vue-loader next: https://github.com/vuejs/vue-loader/blob/next/src/index.ts#L91
7387
const { descriptor, errors } = sfc_parse(source, {

0 commit comments

Comments
 (0)