chore:更换到主分支

This commit is contained in:
张益铭
2021-03-01 15:26:05 +08:00
parent 9064b372e8
commit 6a5f1810f9
3530 changed files with 59613 additions and 479452 deletions

16
node_modules/vue/dist/vue.cjs.js generated vendored
View File

@@ -27,7 +27,9 @@ function initDev() {
}
// This entry is the "full-build" that includes both the runtime
initDev();
{
initDev();
}
const compileCache = Object.create(null);
function compileToFunction(template, options) {
if (!shared.isString(template)) {
@@ -35,7 +37,7 @@ function compileToFunction(template, options) {
template = template.innerHTML;
}
else {
runtimeDom.warn(`invalid template option: `, template);
runtimeDom.warn(`invalid template option: `, template);
return shared.NOOP;
}
}
@@ -46,7 +48,7 @@ function compileToFunction(template, options) {
}
if (template[0] === '#') {
const el = document.querySelector(template);
if ( !el) {
if (!el) {
runtimeDom.warn(`Template element not found or is empty: ${template}`);
}
// __UNSAFE__
@@ -70,13 +72,13 @@ function compileToFunction(template, options) {
// with keys that cannot be mangled, and can be quite heavy size-wise.
// In the global build we know `Vue` is available globally so we can avoid
// the wildcard object.
const render = ( new Function('Vue', code)(runtimeDom__namespace));
const render = (new Function('Vue', code)(runtimeDom__namespace));
render._rc = true;
return (compileCache[key] = render);
}
runtimeDom.registerRuntimeCompiler(compileToFunction);
Object.keys(runtimeDom).forEach(function (k) {
if (k !== 'default') exports[k] = runtimeDom[k];
});
exports.compile = compileToFunction;
Object.keys(runtimeDom).forEach(function (k) {
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = runtimeDom[k];
});