@sprlab/wccompiler 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/compiler.js +3 -0
- package/package.json +1 -1
package/lib/compiler.js
CHANGED
|
@@ -34,6 +34,7 @@ import {
|
|
|
34
34
|
extractConstants,
|
|
35
35
|
extractExpose,
|
|
36
36
|
extractModels,
|
|
37
|
+
detectBatchUsage,
|
|
37
38
|
validatePropsAssignment,
|
|
38
39
|
validateDuplicateProps,
|
|
39
40
|
validatePropsConflicts,
|
|
@@ -164,6 +165,7 @@ async function compileSFC(filePath, config) {
|
|
|
164
165
|
const constantVars = extractConstants(sourceForExtraction);
|
|
165
166
|
const exposeNames = extractExpose(source);
|
|
166
167
|
const modelDefs = extractModels(sourceForExtraction);
|
|
168
|
+
const usesBatch = detectBatchUsage(sourceForExtraction);
|
|
167
169
|
|
|
168
170
|
// 9. Extract props (array form — after type strip, if generic didn't find any)
|
|
169
171
|
const propsFromArray = propsFromGeneric.length > 0 ? [] : extractPropsArray(source);
|
|
@@ -295,6 +297,7 @@ async function compileSFC(filePath, config) {
|
|
|
295
297
|
exposeNames,
|
|
296
298
|
modelDefs,
|
|
297
299
|
dynamicComponents: [],
|
|
300
|
+
usesBatch,
|
|
298
301
|
};
|
|
299
302
|
|
|
300
303
|
// 16. Process template through linkedom → tree-walker → codegen
|
package/package.json
CHANGED