vue.cjs.prod.min.js 1013 B

1
  1. "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var compilerDom=require("@vue/compiler-dom"),runtimeDom=require("@vue/runtime-dom"),shared=require("@vue/shared");function _interopNamespace(r){if(r&&r.__esModule)return r;var o=Object.create(null);return r&&Object.keys(r).forEach(function(e){o[e]=r[e]}),o.default=r,Object.freeze(o)}var runtimeDom__namespace=_interopNamespace(runtimeDom);const compileCache=Object.create(null);function compileToFunction(e,r){if(!shared.isString(e)){if(!e.nodeType)return shared.NOOP;e=e.innerHTML}var o=e,n=compileCache[o];if(n)return n;"#"===e[0]&&(e=(n=document.querySelector(e))?n.innerHTML:"");n=compilerDom.compile(e,shared.extend({hoistStatic:!0,onError:void 0,onWarn:shared.NOOP},r)).code;const t=new Function("Vue",n)(runtimeDom__namespace);return t._rc=!0,compileCache[o]=t}runtimeDom.registerRuntimeCompiler(compileToFunction),Object.keys(runtimeDom).forEach(function(e){"default"!==e&&(exports[e]=runtimeDom[e])}),exports.compile=compileToFunction;