"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/compiler-sfc/src/compileScript.ts" between
vue-2.7.13.tar.gz and vue-2.7.14.tar.gz

About: Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

compileScript.ts  (vue-2.7.13):compileScript.ts  (vue-2.7.14)
skipping to change at line 42 skipping to change at line 42
TSInterfaceBody, TSInterfaceBody,
Program, Program,
ObjectMethod, ObjectMethod,
LVal, LVal,
Expression Expression
} from '@babel/types' } from '@babel/types'
import { walk } from 'estree-walker' import { walk } from 'estree-walker'
import { RawSourceMap } from 'source-map' import { RawSourceMap } from 'source-map'
import { warnOnce } from './warn' import { warnOnce } from './warn'
import { isReservedTag } from 'web/util' import { isReservedTag } from 'web/util'
import { bindRE, dirRE, onRE } from 'compiler/parser' import { bindRE, dirRE, onRE, slotRE } from 'compiler/parser'
import { parseText } from 'compiler/parser/text-parser' import { parseText } from 'compiler/parser/text-parser'
import { DEFAULT_FILENAME } from './parseComponent' import { DEFAULT_FILENAME } from './parseComponent'
import { import {
CSS_VARS_HELPER, CSS_VARS_HELPER,
genCssVarsCode, genCssVarsCode,
genNormalScriptCssVarsCode genNormalScriptCssVarsCode
} from './cssVars' } from './cssVars'
import { rewriteDefault } from './rewriteDefault' import { rewriteDefault } from './rewriteDefault'
// Special compiler macros // Special compiler macros
skipping to change at line 1807 skipping to change at line 1807
...webCompilerOptions, ...webCompilerOptions,
start(tag, attrs) { start(tag, attrs) {
if (!isBuiltInTag(tag) && !isReservedTag(tag)) { if (!isBuiltInTag(tag) && !isReservedTag(tag)) {
code += `,${camelize(tag)},${capitalize(camelize(tag))}` code += `,${camelize(tag)},${capitalize(camelize(tag))}`
} }
for (let i = 0; i < attrs.length; i++) { for (let i = 0; i < attrs.length; i++) {
const { name, value } = attrs[i] const { name, value } = attrs[i]
if (dirRE.test(name)) { if (dirRE.test(name)) {
const baseName = onRE.test(name) const baseName = onRE.test(name)
? 'on' ? 'on'
: slotRE.test(name)
? 'slot'
: bindRE.test(name) : bindRE.test(name)
? 'bind' ? 'bind'
: name.replace(dirRE, '') : name.replace(dirRE, '')
if (!isBuiltInDir(baseName)) { if (!isBuiltInDir(baseName)) {
code += `,v${capitalize(camelize(baseName))}` code += `,v${capitalize(camelize(baseName))}`
} }
if (value) { if (value) {
code += `,${processExp(value, isTS, baseName)}` code += `,${processExp(value, isTS, baseName)}`
} }
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)