pikax 5 lat temu
rodzic
commit
0af78c57b3
100 zmienionych plików z 43 dodań i 261 usunięć
  1. 0 79
      packages/vue-server-renderer/build.dev.js
  2. 42 84
      packages/vue-template-compiler/browser.js
  3. 1 1
      scripts/config.js
  4. 0 1
      src/compiler/codeframe.ts
  5. 0 1
      src/compiler/codegen/events.ts
  6. 0 1
      src/compiler/codegen/index.ts
  7. 0 1
      src/compiler/create-compiler.ts
  8. 0 1
      src/compiler/directives/bind.ts
  9. 0 1
      src/compiler/directives/index.ts
  10. 0 1
      src/compiler/directives/model.ts
  11. 0 1
      src/compiler/directives/on.ts
  12. 0 1
      src/compiler/error-detector.ts
  13. 0 1
      src/compiler/helpers.ts
  14. 0 1
      src/compiler/index.ts
  15. 0 1
      src/compiler/optimizer.ts
  16. 0 1
      src/compiler/parser/entity-decoder.ts
  17. 0 1
      src/compiler/parser/filter-parser.ts
  18. 0 1
      src/compiler/parser/index.ts
  19. 0 1
      src/compiler/parser/text-parser.ts
  20. 0 1
      src/compiler/to-function.ts
  21. 0 1
      src/core/config.ts
  22. 0 1
      src/core/global-api/assets.ts
  23. 0 1
      src/core/global-api/extend.ts
  24. 0 1
      src/core/global-api/index.ts
  25. 0 1
      src/core/global-api/mixin.ts
  26. 0 1
      src/core/global-api/use.ts
  27. 0 1
      src/core/instance/events.ts
  28. 0 1
      src/core/instance/init.ts
  29. 0 1
      src/core/instance/inject.ts
  30. 0 1
      src/core/instance/lifecycle.ts
  31. 0 1
      src/core/instance/render-helpers/bind-dynamic-keys.ts
  32. 0 1
      src/core/instance/render-helpers/bind-object-listeners.ts
  33. 0 1
      src/core/instance/render-helpers/bind-object-props.ts
  34. 0 1
      src/core/instance/render-helpers/check-keycodes.ts
  35. 0 1
      src/core/instance/render-helpers/index.ts
  36. 0 1
      src/core/instance/render-helpers/resolve-slots.ts
  37. 0 1
      src/core/instance/render.ts
  38. 0 1
      src/core/instance/state.ts
  39. 0 1
      src/core/observer/scheduler.ts
  40. 0 1
      src/core/observer/traverse.ts
  41. 0 1
      src/core/observer/watcher.ts
  42. 0 1
      src/core/util/debug.ts
  43. 0 1
      src/core/util/env.ts
  44. 0 1
      src/core/util/index.ts
  45. 0 1
      src/core/util/lang.ts
  46. 0 1
      src/core/util/next-tick.ts
  47. 0 1
      src/core/util/options.ts
  48. 0 1
      src/core/util/props.ts
  49. 0 1
      src/core/vdom/create-component.ts
  50. 0 1
      src/core/vdom/create-element.ts
  51. 0 1
      src/core/vdom/create-functional-component.ts
  52. 0 1
      src/core/vdom/helpers/extract-props.ts
  53. 0 1
      src/core/vdom/helpers/get-first-component-child.ts
  54. 0 1
      src/core/vdom/helpers/index.ts
  55. 0 1
      src/core/vdom/helpers/is-async-placeholder.ts
  56. 0 1
      src/core/vdom/helpers/merge-hook.ts
  57. 0 1
      src/core/vdom/helpers/normalize-children.ts
  58. 0 1
      src/core/vdom/helpers/normalize-scoped-slots.ts
  59. 0 1
      src/core/vdom/helpers/resolve-async-component.ts
  60. 0 1
      src/core/vdom/modules/directives.ts
  61. 0 1
      src/core/vdom/modules/ref.ts
  62. 0 1
      src/platforms/web/compiler/directives/html.ts
  63. 0 1
      src/platforms/web/compiler/directives/model.ts
  64. 0 1
      src/platforms/web/compiler/directives/text.ts
  65. 0 1
      src/platforms/web/compiler/index.ts
  66. 0 1
      src/platforms/web/compiler/modules/class.ts
  67. 0 1
      src/platforms/web/compiler/modules/model.ts
  68. 0 1
      src/platforms/web/compiler/modules/style.ts
  69. 0 1
      src/platforms/web/compiler/options.ts
  70. 0 1
      src/platforms/web/compiler/util.ts
  71. 0 1
      src/platforms/web/entry-compiler.ts
  72. 0 1
      src/platforms/web/entry-runtime-with-compiler.ts
  73. 0 1
      src/platforms/web/entry-runtime.ts
  74. 0 1
      src/platforms/web/entry-server-basic-renderer.ts
  75. 0 1
      src/platforms/web/entry-server-renderer.ts
  76. 0 1
      src/platforms/web/runtime/class-util.ts
  77. 0 1
      src/platforms/web/runtime/components/transition.ts
  78. 0 1
      src/platforms/web/runtime/directives/show.ts
  79. 0 1
      src/platforms/web/runtime/modules/attrs.ts
  80. 0 1
      src/platforms/web/runtime/modules/class.ts
  81. 0 1
      src/platforms/web/runtime/modules/dom-props.ts
  82. 0 1
      src/platforms/web/runtime/modules/events.ts
  83. 0 1
      src/platforms/web/runtime/modules/style.ts
  84. 0 1
      src/platforms/web/runtime/modules/transition.ts
  85. 0 1
      src/platforms/web/runtime/node-ops.ts
  86. 0 1
      src/platforms/web/runtime/patch.ts
  87. 0 1
      src/platforms/web/server/compiler.ts
  88. 0 1
      src/platforms/web/server/directives/model.ts
  89. 0 1
      src/platforms/web/server/directives/show.ts
  90. 0 1
      src/platforms/web/server/modules/attrs.ts
  91. 0 1
      src/platforms/web/server/modules/class.ts
  92. 0 1
      src/platforms/web/server/modules/dom-props.ts
  93. 0 1
      src/platforms/web/server/modules/style.ts
  94. 0 1
      src/platforms/web/server/util.ts
  95. 0 1
      src/platforms/web/util/attrs.ts
  96. 0 1
      src/platforms/web/util/class.ts
  97. 0 1
      src/platforms/web/util/compat.ts
  98. 0 1
      src/platforms/web/util/element.ts
  99. 0 1
      src/platforms/web/util/index.ts
  100. 0 1
      src/platforms/web/util/style.ts

+ 0 - 79
packages/vue-server-renderer/build.dev.js

@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
 
 var stream = require('stream');
 
-/* @flow */
 var emptyObject = Object.freeze({});
 // These helpers produce better VM code in JS engines due to their
 // explicitness and function inlining.
@@ -257,7 +256,6 @@ function looseIndexOf(arr, val) {
     return -1;
 }
 
-/* @flow */
 var isAttr = makeMap('accept,accept-charset,accesskey,action,align,alt,async,autocomplete,' +
     'autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,' +
     'checked,cite,class,code,codebase,color,cols,colspan,content,' +
@@ -342,7 +340,6 @@ var noUnitNumericStyleProps = {
     'stroke-width': true,
 };
 
-/* @flow */
 // these are reserved for web because they are directly compiled away
 // during template compilation
 makeMap('style,class');
@@ -374,7 +371,6 @@ var isFalsyAttrValue = function (val) {
     return val == null || val === false;
 };
 
-/* @flow */
 function renderAttrs$1(node) {
     var attrs = node.data.attrs;
     var res = '';
@@ -494,7 +490,6 @@ function cloneVNode(vnode) {
     return cloned;
 }
 
-/* @flow */
 function renderDOMProps$1(node) {
     var props = node.data.domProps;
     var res = '';
@@ -537,7 +532,6 @@ function setText(node, text, raw) {
     node.children = [child];
 }
 
-/* @flow */
 /**
  * unicode letters used for parsing html tags, component names and property paths.
  * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
@@ -556,7 +550,6 @@ function def(obj, key, val, enumerable) {
     });
 }
 
-/* @flow */
 // can we use __proto__?
 var hasProto = '__proto__' in {};
 // Browser environment sniffing
@@ -660,7 +653,6 @@ var LIFECYCLE_HOOKS = [
     'errorCaptured',
     'serverPrefetch' ];
 
-/* @flow */
 var config = {
     /**
      * Option merge strategies (used in core/util/options)
@@ -739,7 +731,6 @@ var config = {
     _lifecycleHooks: LIFECYCLE_HOOKS,
 };
 
-/* @flow */
 var warn$2 = noop$1;
 var tip = noop$1;
 var generateComponentTrace; // work around flow check
@@ -1125,7 +1116,6 @@ function dependArray(value) {
     }
 }
 
-/* @flow */
 /**
  * Option overwriting strategies are functions that handle
  * how to merge a parent option value and a child option
@@ -1504,7 +1494,6 @@ function resolveAsset(options, type, id, warnMissing) {
     return res;
 }
 
-/* @flow */
 function validateProp(key, propOptions, propsData, vm) {
     var prop = propOptions[key];
     var absent = !hasOwn(propsData, key);
@@ -1768,7 +1757,6 @@ function logError(err, vm, info) {
     }
 }
 
-/* @flow */
 var callbacks = [];
 function flushCallbacks() {
     var copies = callbacks.slice(0);
@@ -1803,7 +1791,6 @@ else if (!isIE &&
 else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) ;
 else ;
 
-/* @flow */
 function genClassForVnode(vnode) {
     var data = vnode.data;
     var parentNode = vnode;
@@ -1874,7 +1861,6 @@ function stringifyObject(value) {
     return res;
 }
 
-/* @flow */
 var isHTMLTag = makeMap('html,body,base,head,link,meta,style,title,' +
     'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
     'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
@@ -1907,7 +1893,6 @@ function getTagNamespace(tag) {
 }
 makeMap('text,number,password,search,email,tel,url');
 
-/* @flow */
 function renderClass(node) {
     var classList = genClassForVnode(node);
     if (classList !== '') {
@@ -1915,7 +1900,6 @@ function renderClass(node) {
     }
 }
 
-/* @flow */
 var parseStyleText = cached(function (cssText) {
     var res = {};
     var listDelimiter = /;(?![^(]*\))/g;
@@ -1975,7 +1959,6 @@ function getStyle(vnode, checkChild) {
     return res;
 }
 
-/* @flow */
 function genStyle(style) {
     var styleText = '';
     for (var key in style) {
@@ -2012,7 +1995,6 @@ function renderStyle(vnode) {
 
 var modules$1 = [renderAttrs$1, renderDOMProps$1, renderClass, renderStyle];
 
-/* @flow */
 function show(node, dir) {
     if (!dir.value) {
         var style = node.data.style || (node.data.style = {});
@@ -2025,7 +2007,6 @@ function show(node, dir) {
     }
 }
 
-/* @flow */
 // this is only applied for <select v-model> because it is the only edge case
 // that must be done at runtime instead of compile time.
 function model$2(node, dir) {
@@ -2068,7 +2049,6 @@ var baseDirectives$1 = {
     model: model$2,
 };
 
-/* @flow */
 var isUnaryTag = makeMap('area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +
     'link,meta,param,source,track,wbr');
 // Elements that you can, intentionally, leave open
@@ -2113,7 +2093,6 @@ function __extends(d, b) {
     d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
 }
 
-/* @flow */
 var MAX_STACK_DEPTH = 800;
 var noop = function (_) { return _; };
 var defer = typeof process !== 'undefined' && process.nextTick
@@ -2159,7 +2138,6 @@ function createWriteFunction(write, onError) {
     return cachedWrite;
 }
 
-/* @flow */
 var RenderStream = /** @class */ (function (_super) {
     __extends(RenderStream, _super);
     function RenderStream(render) {
@@ -2234,7 +2212,6 @@ var RenderStream = /** @class */ (function (_super) {
     return RenderStream;
 }(stream.Readable));
 
-/* @flow */
 var RenderContext = /** @class */ (function () {
     function RenderContext(options) {
         this.userContext = options.userContext;
@@ -2332,7 +2309,6 @@ function normalizeAsync(cache, method) {
     }
 }
 
-/* @flow */
 var validDivisionCharRE = /[\w).+\-_$\]]/;
 function parseFilters(exp) {
     var inSingle = false;
@@ -2456,7 +2432,6 @@ function wrapFilter(exp, filter) {
     }
 }
 
-/* @flow */
 var defaultTagRE = /\{\{((?:.|\r?\n)+?)\}\}/g;
 var regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g;
 var buildRegex = cached(function (delimiters) {
@@ -2497,7 +2472,6 @@ function parseText(text, delimiters) {
     };
 }
 
-/* @flow */
 /* eslint-disable no-unused-vars */
 function baseWarn(msg, range) {
     console.error("[Vue compiler]: " + msg);
@@ -2664,7 +2638,6 @@ function rangeSetItem(item, range) {
     return item;
 }
 
-/* @flow */
 function transformNode$1(el, options) {
     var warn = options.warn || baseWarn;
     var staticClass = getAndRemoveAttr(el, 'class');
@@ -2701,7 +2674,6 @@ var klass = {
     genData: genData$2,
 };
 
-/* @flow */
 function transformNode(el, options) {
     var warn = options.warn || baseWarn;
     var staticStyle = getAndRemoveAttr(el, 'style');
@@ -3026,7 +2998,6 @@ function parseHTML(html, options) {
     }
 }
 
-/* @flow */
 /**
  * Cross-platform code generation for component v-model
  */
@@ -3152,7 +3123,6 @@ function parseString(chr) {
     }
 }
 
-/* @flow */
 var he = require('he');
 var onRE = /^@|^v-on:/;
 var dirRE = /^v-|^@|^:|^#/;
@@ -3951,7 +3921,6 @@ function checkForAliasModel(el, value) {
     }
 }
 
-/* @flow */
 function preTransformNode(el, options) {
     if (el.tag === 'input') {
         var map = el.attrsMap;
@@ -4019,7 +3988,6 @@ var model$1 = {
 
 var modules = [klass, style, model$1];
 
-/* @flow */
 var warn;
 // in some cases, the event used has to be determined at runtime
 // so we used some reserved tokens during compile.
@@ -4135,14 +4103,12 @@ function genDefaultModel(el, value, modifiers) {
     }
 }
 
-/* @flow */
 function text(el, dir) {
     if (dir.value) {
         addProp(el, 'textContent', "_s(" + dir.value + ")", dir);
     }
 }
 
-/* @flow */
 function html(el, dir) {
     if (dir.value) {
         addProp(el, 'innerHTML', "_s(" + dir.value + ")", dir);
@@ -4155,7 +4121,6 @@ var directives = {
     html: html,
 };
 
-/* @flow */
 var baseOptions = {
     expectHTML: true,
     modules: modules,
@@ -4170,7 +4135,6 @@ var baseOptions = {
     staticKeys: genStaticKeys(modules),
 };
 
-/* @flow */
 var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/;
 var fnInvokeRE = /\([^)]*?\);*$/;
 var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;
@@ -4322,7 +4286,6 @@ function genFilterCode(key) {
         ")");
 }
 
-/* @flow */
 function on(el, dir) {
     if (dir.modifiers) {
         warn$2("v-on without argument does not support modifiers.");
@@ -4330,21 +4293,18 @@ function on(el, dir) {
     el.wrapListeners = function (code) { return "_g(" + code + "," + dir.value + ")"; };
 }
 
-/* @flow */
 function bind(el, dir) {
     el.wrapData = function (code) {
         return "_b(" + code + ",'" + el.tag + "'," + dir.value + "," + (dir.modifiers && dir.modifiers.prop ? 'true' : 'false') + (dir.modifiers && dir.modifiers.sync ? ',true' : '') + ")";
     };
 }
 
-/* @flow */
 var baseDirectives = {
     on: on,
     bind: bind,
     cloak: noop$1,
 };
 
-/* @flow */
 var CodegenState = /** @class */ (function () {
     function CodegenState(options) {
         this.options = options;
@@ -4825,7 +4785,6 @@ function transformSpecialNewlines(text) {
     return text.replace(/\u2028/g, '\\u2028').replace(/\u2029/g, '\\u2029');
 }
 
-/* @flow */
 var plainStringRE = /^"(?:[^"\\]|\\.)*"$|^'(?:[^'\\]|\\.)*'$/;
 // let the model AST transform translate v-model into appropriate
 // props bindings
@@ -4913,7 +4872,6 @@ function genStyleSegments(staticStyle, parsedStaticStyle, styleBinding, vShowExp
     }
 }
 
-/* @flow */
 // optimizability constants
 var optimizability = {
     FALSE: 0,
@@ -5031,7 +4989,6 @@ function isSelectWithModel(node) {
         node.directives.some(function (d) { return d.name === 'model'; }));
 }
 
-/* @flow */
 // segment types
 var RAW = 0;
 var INTERPOLATION = 1;
@@ -5226,7 +5183,6 @@ function flattenSegments(segments) {
     return mergedSegments.join('+');
 }
 
-/* @flow */
 // these keywords should not appear inside expressions, but operators like
 // typeof, instanceof and in are allowed
 var prohibitedKeywordRE = new RegExp('\\b' +
@@ -5335,7 +5291,6 @@ function checkFunctionParameterExpression(exp, text, warn, range) {
     }
 }
 
-/* @flow */
 var range = 2;
 function generateCodeFrame(source, start, end) {
     if (start === void 0) { start = 0; }
@@ -5386,7 +5341,6 @@ function repeat(str, n) {
     return result;
 }
 
-/* @flow */
 function createFunction(code, errors) {
     try {
         return new Function(code);
@@ -5477,7 +5431,6 @@ function createCompileToFunctionFn(compile) {
     };
 }
 
-/* @flow */
 function createCompilerCreator(baseCompile) {
     return function createCompiler(baseOptions) {
         function compile(template, options) {
@@ -5535,7 +5488,6 @@ function createCompilerCreator(baseCompile) {
     };
 }
 
-/* @flow */
 var createCompiler = createCompilerCreator(function baseCompile(template, options) {
     var ast = parse(template.trim(), options);
     optimize(ast, options);
@@ -5547,10 +5499,8 @@ var createCompiler = createCompilerCreator(function baseCompile(template, option
     };
 });
 
-/* @flow */
 var _a = createCompiler(baseOptions), compileToFunctions = _a.compileToFunctions;
 
-/* @flow */
 // The template compiler attempts to minimize the need for normalization by
 // statically analyzing the template at compile time.
 //
@@ -5637,7 +5587,6 @@ function normalizeArrayChildren(children, nestedIndex) {
     return res;
 }
 
-/* @flow */
 var ssrHelpers = {
     _ssrEscape: escape,
     _ssrNode: renderStringNode$1,
@@ -5770,7 +5719,6 @@ function renderSSRStyle(staticStyle, dynamic, extra) {
     }
 }
 
-/* @flow */
 var seenObjects = new _Set();
 /**
  * Recursively traverse an object to evoke all converted
@@ -5883,7 +5831,6 @@ function updateListeners(on, oldOn, add, remove, createOnceHandler, vm) {
     }
 }
 
-/* @flow */
 function extractPropsFromVNodeData(data, Ctor, tag) {
     // we are only extracting raw values here.
     // validation and default values are handled in the child
@@ -5936,7 +5883,6 @@ function checkProp(res, hash, key, altKey, preserve) {
     return false;
 }
 
-/* @flow */
 var SIMPLE_NORMALIZE = 1;
 var ALWAYS_NORMALIZE = 2;
 // wrapper function for providing a more flexible interface
@@ -6129,7 +6075,6 @@ function resolveFilter(id) {
     return resolveAsset(this.$options, 'filters', id, true) || identity;
 }
 
-/* @flow */
 function isKeyNotMatch(expect, actual) {
     if (Array.isArray(expect)) {
         return expect.indexOf(actual) === -1;
@@ -6156,7 +6101,6 @@ function checkKeyCodes(eventKeyCode, key, builtInKeyCode, eventKeyName, builtInK
     }
 }
 
-/* @flow */
 /**
  * Runtime helper for merging v-bind="object" into a VNode's data.
  */
@@ -6244,7 +6188,6 @@ function markStaticNode(node, key, isOnce) {
     node.isOnce = isOnce;
 }
 
-/* @flow */
 function bindObjectListeners(data, value) {
     if (value) {
         if (!isPlainObject(value)) {
@@ -6287,7 +6230,6 @@ hasDynamicKeys, contentHashKey) {
     return res;
 }
 
-/* @flow */
 function bindDynamicKeys(baseObj, values) {
     for (var i = 0; i < values.length; i += 2) {
         var key = values[i];
@@ -6309,7 +6251,6 @@ function prependModifier(value, symbol) {
     return typeof value === 'string' ? symbol + value : value;
 }
 
-/* @flow */
 function installRenderHelpers(target) {
     target._o = markOnce;
     target._n = toNumber;
@@ -6330,7 +6271,6 @@ function installRenderHelpers(target) {
     target._p = prependModifier;
 }
 
-/* @flow */
 /**
  * Runtime helper for resolving raw children VNodes into a slot object.
  */
@@ -6376,7 +6316,6 @@ function isWhitespace(node) {
     return (node.isComment && !node.asyncFactory) || node.text === ' ';
 }
 
-/* @flow */
 function normalizeScopedSlots(slots, normalSlots, prevSlots) {
     var res;
     var hasNormalSlots = Object.keys(normalSlots).length > 0;
@@ -6450,7 +6389,6 @@ function proxyNormalSlot(slots, key) {
     return function () { return slots[key]; };
 }
 
-/* @flow */
 function createAsyncPlaceholder(factory, data, context, children, tag) {
     var node = createEmptyVNode();
     node.asyncFactory = factory;
@@ -6469,7 +6407,6 @@ function resolveAsyncComponent(factory, baseCtor) {
     }
 }
 
-/* @flow */
 var target;
 function add(event, fn) {
     target.$on(event, fn);
@@ -6492,7 +6429,6 @@ function updateComponentListeners(vm, listeners, oldListeners) {
     target = undefined;
 }
 
-/* @flow */
 var activeInstance = null;
 function updateChildComponent(vm, propsData, listeners, parentVnode, renderChildren) {
     // determine whether component has slot children
@@ -6608,7 +6544,6 @@ function callHook(vm, hook) {
     popTarget();
 }
 
-/* @flow */
 // Async edge case fix requires storing an event listener's attach timestamp.
 var getNow = Date.now;
 // Determine what event timestamp the browser is using. Annoyingly, the
@@ -6639,7 +6574,6 @@ function queueActivatedComponent(vm) {
     vm._inactive = false;
 }
 
-/* @flow */
 function resolveInject(inject, vm) {
     if (inject) {
         // inject is :any because flow is not smart enough to figure out cached
@@ -6678,7 +6612,6 @@ function resolveInject(inject, vm) {
     }
 }
 
-/* @flow */
 function resolveConstructorOptions(Ctor) {
     var options = Ctor.options;
     if (Ctor.super) {
@@ -6716,7 +6649,6 @@ function resolveModifiedOptions(Ctor) {
     return modified;
 }
 
-/* @flow */
 function FunctionalRenderContext(data, props, children, parent, Ctor) {
     var _this = this;
     var options = Ctor.options;
@@ -6831,7 +6763,6 @@ function mergeProps(to, from) {
     }
 }
 
-/* @flow */
 // inline hooks to be invoked on component VNodes during patch
 var componentVNodeHooks = {
     init: function (vnode, hydrating) {
@@ -7025,7 +6956,6 @@ function transformModel(options, data) {
     }
 }
 
-/* @flow */
 var warned = Object.create(null);
 var warnOnce = function (msg) {
     if (!warned[msg]) {
@@ -7411,7 +7341,6 @@ function createRenderFunction(modules, directives, isUnaryTag, cache) {
     };
 }
 
-/* @flow */
 var isJS = function (file) { return /\.js(\?[^.]+)?$/.test(file); };
 var isCSS = function (file) { return /\.css(\?[^.]+)?$/.test(file); };
 function createPromiseCallback() {
@@ -7428,7 +7357,6 @@ function createPromiseCallback() {
     return { promise: promise, cb: cb };
 }
 
-/* @flow */
 var TemplateStream = /** @class */ (function (_super) {
     __extends(TemplateStream, _super);
     function TemplateStream(renderer, template, context) {
@@ -7489,7 +7417,6 @@ var TemplateStream = /** @class */ (function (_super) {
     return TemplateStream;
 }(stream.Transform));
 
-/* @flow */
 var compile = require('lodash.template');
 var compileOptions = {
     escape: /{{([^{][\s\S]+?[^}])}}/g,
@@ -7518,7 +7445,6 @@ function parseTemplate(template, contentPlaceholder) {
     };
 }
 
-/* @flow */
 function createMapper(clientManifest) {
     var map = createMap(clientManifest);
     // map server-side moduleIds to client-side files
@@ -7559,7 +7485,6 @@ function mapIdToFile(id, clientManifest) {
     return files;
 }
 
-/* @flow */
 var path$2 = require('path');
 var serialize = require('serialize-javascript');
 var TemplateRenderer = /** @class */ (function () {
@@ -7798,7 +7723,6 @@ function getPreloadType(ext) {
     }
 }
 
-/* @flow */
 function createRenderer$1(_a) {
     var _b = _a === void 0 ? {} : _a, _c = _b.modules, modules = _c === void 0 ? [] : _c, _d = _b.directives, directives = _d === void 0 ? {} : _d, _e = _b.isUnaryTag, isUnaryTag = _e === void 0 ? function () { return false; } : _e, template = _b.template, inject = _b.inject, cache = _b.cache, shouldPreload = _b.shouldPreload, shouldPrefetch = _b.shouldPrefetch, clientManifest = _b.clientManifest, serializer = _b.serializer;
     var render = createRenderFunction(modules, directives, isUnaryTag, cache);
@@ -8061,7 +7985,6 @@ function createBundleRunner(entry, files, basedir, runInNewContext) {
     }
 }
 
-/* @flow */
 var SourceMapConsumer = require('source-map').SourceMapConsumer;
 var filenameRE = /\(([^)]+\.js):(\d+):(\d+)\)$/;
 function createSourceMapConsumers(rawMaps) {
@@ -8103,7 +8026,6 @@ function rewriteTraceLine(trace, mapConsumers) {
     }
 }
 
-/* @flow */
 var fs = require('fs');
 var path = require('path');
 var PassThrough = require('stream').PassThrough;
@@ -8220,7 +8142,6 @@ function createBundleRendererCreator(createRenderer) {
     };
 }
 
-/* @flow */
 process.env.VUE_ENV = 'server';
 function createRenderer(options) {
     if (options === void 0) { options = {}; }

+ 42 - 84
packages/vue-template-compiler/browser.js

@@ -50,8 +50,7 @@
     return i
   }
 
-  /* @flow */
-  var emptyObject = Object.freeze({});
+    var emptyObject = Object.freeze({});
   // These helpers produce better VM code in JS engines due to their
   // explicitness and function inlining.
   function isUndef(v) {
@@ -194,8 +193,7 @@
           .join(',');
   }
 
-  /* @flow */
-  var isUnaryTag = makeMap('area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +
+    var isUnaryTag = makeMap('area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +
       'link,meta,param,source,track,wbr');
   // Elements that you can, intentionally, leave open
   // (and which close themselves)
@@ -208,8 +206,7 @@
       'optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,' +
       'title,tr,track');
 
-  /* @flow */
-  /**
+    /**
    * unicode letters used for parsing html tags, component names and property paths.
    * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
    * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
@@ -514,8 +511,7 @@
       }
   }
 
-  /* @flow */
-  var splitRE = /\r?\n/g;
+    var splitRE = /\r?\n/g;
   var replaceRE = /./g;
   var isSpecialTag = makeMap('script,style,template', true);
   /**
@@ -631,8 +627,7 @@
       return sfc;
   }
 
-  /* @flow */
-  // can we use __proto__?
+    // can we use __proto__?
   var hasProto = '__proto__' in {};
   // Browser environment sniffing
   var inBrowser = typeof window !== 'undefined';
@@ -730,8 +725,7 @@
       'errorCaptured',
       'serverPrefetch' ];
 
-  /* @flow */
-  var config = {
+    var config = {
       /**
        * Option merge strategies (used in core/util/options)
        */
@@ -809,8 +803,7 @@
       _lifecycleHooks: LIFECYCLE_HOOKS,
   };
 
-  /* @flow */
-  var warn$2 = noop;
+    var warn$2 = noop;
   var tip = noop;
   var generateComponentTrace; // work around flow check
   var formatComponentName;
@@ -1215,8 +1208,7 @@
       }
   }
 
-  /* @flow */
-  /**
+    /**
    * Option overwriting strategies are functions that handle
    * how to merge a parent option value and a child option
    * value into the final value.
@@ -1425,8 +1417,7 @@
       }
   }
 
-  /* @flow */
-  var callbacks = [];
+    var callbacks = [];
   function flushCallbacks() {
       var copies = callbacks.slice(0);
       callbacks.length = 0;
@@ -1460,8 +1451,7 @@
   else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) ;
   else ;
 
-  /* @flow */
-  // these are reserved for web because they are directly compiled away
+    // these are reserved for web because they are directly compiled away
   // during template compilation
   makeMap('style,class');
   // attributes that should be using props for binding
@@ -1481,8 +1471,7 @@
       'required,reversed,scoped,seamless,selected,sortable,' +
       'truespeed,typemustmatch,visible');
 
-  /* @flow */
-  var isHTMLTag = makeMap('html,body,base,head,link,meta,style,title,' +
+    var isHTMLTag = makeMap('html,body,base,head,link,meta,style,title,' +
       'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
       'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
       'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +
@@ -1514,8 +1503,7 @@
   }
   makeMap('text,number,password,search,email,tel,url');
 
-  /* @flow */
-  var validDivisionCharRE = /[\w).+\-_$\]]/;
+    var validDivisionCharRE = /[\w).+\-_$\]]/;
   function parseFilters(exp) {
       var inSingle = false;
       var inDouble = false;
@@ -1638,8 +1626,7 @@
       }
   }
 
-  /* @flow */
-  var defaultTagRE = /\{\{((?:.|\r?\n)+?)\}\}/g;
+    var defaultTagRE = /\{\{((?:.|\r?\n)+?)\}\}/g;
   var regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g;
   var buildRegex = cached(function (delimiters) {
       var open = delimiters[0].replace(regexEscapeRE, '\\$&');
@@ -1679,8 +1666,7 @@
       };
   }
 
-  /* @flow */
-  /* eslint-disable no-unused-vars */
+    /* eslint-disable no-unused-vars */
   function baseWarn(msg, range) {
       console.error("[Vue compiler]: " + msg);
   }
@@ -1846,8 +1832,7 @@
       return item;
   }
 
-  /* @flow */
-  function transformNode$1(el, options) {
+    function transformNode$1(el, options) {
       var warn = options.warn || baseWarn;
       var staticClass = getAndRemoveAttr(el, 'class');
       if (staticClass) {
@@ -1883,8 +1868,7 @@
       genData: genData$2,
   };
 
-  /* @flow */
-  var parseStyleText = cached(function (cssText) {
+    var parseStyleText = cached(function (cssText) {
       var res = {};
       var listDelimiter = /;(?![^(]*\))/g;
       var propertyDelimiter = /:(.+)/;
@@ -1897,8 +1881,7 @@
       return res;
   });
 
-  /* @flow */
-  function transformNode(el, options) {
+    function transformNode(el, options) {
       var warn = options.warn || baseWarn;
       var staticStyle = getAndRemoveAttr(el, 'style');
       if (staticStyle) {
@@ -1935,8 +1918,7 @@
       genData: genData$1,
   };
 
-  /* @flow */
-  /**
+    /**
    * Cross-platform code generation for component v-model
    */
   function genComponentModel(el, value, modifiers) {
@@ -2061,8 +2043,7 @@
       }
   }
 
-  /* @flow */
-  var he = require('he');
+    var he = require('he');
   var onRE = /^@|^v-on:/;
   var dirRE = /^v-|^@|^:|^#/;
   var forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/;
@@ -2860,8 +2841,7 @@
       }
   }
 
-  /* @flow */
-  function preTransformNode(el, options) {
+    function preTransformNode(el, options) {
       if (el.tag === 'input') {
           var map = el.attrsMap;
           if (!map['v-model']) {
@@ -2928,8 +2908,7 @@
 
   var modules = [klass, style, model$1];
 
-  /* @flow */
-  var warn;
+    var warn;
   // in some cases, the event used has to be determined at runtime
   // so we used some reserved tokens during compile.
   var RANGE_TOKEN = '__r';
@@ -3044,15 +3023,13 @@
       }
   }
 
-  /* @flow */
-  function text(el, dir) {
+    function text(el, dir) {
       if (dir.value) {
           addProp(el, 'textContent', "_s(" + dir.value + ")", dir);
       }
   }
 
-  /* @flow */
-  function html(el, dir) {
+    function html(el, dir) {
       if (dir.value) {
           addProp(el, 'innerHTML', "_s(" + dir.value + ")", dir);
       }
@@ -3064,8 +3041,7 @@
       html: html,
   };
 
-  /* @flow */
-  var baseOptions = {
+    var baseOptions = {
       expectHTML: true,
       modules: modules,
       directives: directives,
@@ -3079,8 +3055,7 @@
       staticKeys: genStaticKeys$1(modules),
   };
 
-  /* @flow */
-  var isStaticKey;
+    var isStaticKey;
   var isPlatformReservedTag$1;
   var genStaticKeysCached = cached(genStaticKeys);
   /**
@@ -3197,8 +3172,7 @@
       return false;
   }
 
-  /* @flow */
-  var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/;
+    var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/;
   var fnInvokeRE = /\([^)]*?\);*$/;
   var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;
   // KeyboardEvent.keyCode aliases
@@ -3349,30 +3323,26 @@
           ")");
   }
 
-  /* @flow */
-  function on(el, dir) {
+    function on(el, dir) {
       if (dir.modifiers) {
           warn$2("v-on without argument does not support modifiers.");
       }
       el.wrapListeners = function (code) { return "_g(" + code + "," + dir.value + ")"; };
   }
 
-  /* @flow */
-  function bind(el, dir) {
+    function bind(el, dir) {
       el.wrapData = function (code) {
           return "_b(" + code + ",'" + el.tag + "'," + dir.value + "," + (dir.modifiers && dir.modifiers.prop ? 'true' : 'false') + (dir.modifiers && dir.modifiers.sync ? ',true' : '') + ")";
       };
   }
 
-  /* @flow */
-  var baseDirectives = {
+    var baseDirectives = {
       on: on,
       bind: bind,
       cloak: noop,
   };
 
-  /* @flow */
-  var CodegenState = /** @class */ (function () {
+    var CodegenState = /** @class */ (function () {
       function CodegenState(options) {
           this.options = options;
           this.warn = options.warn || baseWarn;
@@ -3852,8 +3822,7 @@
       return text.replace(/\u2028/g, '\\u2028').replace(/\u2029/g, '\\u2029');
   }
 
-  /* @flow */
-  // these keywords should not appear inside expressions, but operators like
+    // these keywords should not appear inside expressions, but operators like
   // typeof, instanceof and in are allowed
   var prohibitedKeywordRE = new RegExp('\\b' +
       ('do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' +
@@ -3961,8 +3930,7 @@
       }
   }
 
-  /* @flow */
-  var range = 2;
+    var range = 2;
   function generateCodeFrame(source, start, end) {
       if (start === void 0) { start = 0; }
       if (end === void 0) { end = source.length; }
@@ -4012,8 +3980,7 @@
       return result;
   }
 
-  /* @flow */
-  function createFunction(code, errors) {
+    function createFunction(code, errors) {
       try {
           return new Function(code);
       }
@@ -4103,8 +4070,7 @@
       };
   }
 
-  /* @flow */
-  function createCompilerCreator(baseCompile) {
+    function createCompilerCreator(baseCompile) {
       return function createCompiler(baseOptions) {
           function compile(template, options) {
               var finalOptions = Object.create(baseOptions);
@@ -4161,8 +4127,7 @@
       };
   }
 
-  /* @flow */
-  // `createCompilerCreator` allows creating compilers that use alternative
+    // `createCompilerCreator` allows creating compilers that use alternative
   // parser/optimizer/codegen, e.g the SSR optimizing compiler.
   // Here we just export a default compiler using the default parts.
   var createCompiler$1 = createCompilerCreator(function baseCompile(template, options) {
@@ -4178,11 +4143,9 @@
       };
   });
 
-  /* @flow */
-  var _a$1 = createCompiler$1(baseOptions), compile$1 = _a$1.compile, compileToFunctions$1 = _a$1.compileToFunctions;
+    var _a$1 = createCompiler$1(baseOptions), compile$1 = _a$1.compile, compileToFunctions$1 = _a$1.compileToFunctions;
 
-  /* @flow */
-  var isAttr = makeMap('accept,accept-charset,accesskey,action,align,alt,async,autocomplete,' +
+    var isAttr = makeMap('accept,accept-charset,accesskey,action,align,alt,async,autocomplete,' +
       'autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,' +
       'checked,cite,class,code,codebase,color,cols,colspan,content,' +
       'contenteditable,contextmenu,controls,coords,data,datetime,default,' +
@@ -4218,8 +4181,7 @@
       return ESC[a] || a;
   }
 
-  /* @flow */
-  var plainStringRE = /^"(?:[^"\\]|\\.)*"$|^'(?:[^'\\]|\\.)*'$/;
+    var plainStringRE = /^"(?:[^"\\]|\\.)*"$|^'(?:[^'\\]|\\.)*'$/;
   // let the model AST transform translate v-model into appropriate
   // props bindings
   function applyModelTransform(el, state) {
@@ -4306,8 +4268,7 @@
       }
   }
 
-  /* @flow */
-  // optimizability constants
+    // optimizability constants
   var optimizability = {
       FALSE: 0,
       FULL: 1,
@@ -4424,8 +4385,7 @@
           node.directives.some(function (d) { return d.name === 'model'; }));
   }
 
-  /* @flow */
-  // segment types
+    // segment types
   var RAW = 0;
   var INTERPOLATION = 1;
   var EXPRESSION = 2;
@@ -4619,8 +4579,7 @@
       return mergedSegments.join('+');
   }
 
-  /* @flow */
-  var createCompiler = createCompilerCreator(function baseCompile(template, options) {
+    var createCompiler = createCompilerCreator(function baseCompile(template, options) {
       var ast = parse(template.trim(), options);
       optimize(ast, options);
       var code = generate(ast, options);
@@ -4631,8 +4590,7 @@
       };
   });
 
-  /* @flow */
-  var _a = createCompiler(baseOptions), compile = _a.compile, compileToFunctions = _a.compileToFunctions;
+    var _a = createCompiler(baseOptions), compile = _a.compile, compileToFunctions = _a.compileToFunctions;
 
   exports.compile = compile$1;
   exports.compileToFunctions = compileToFunctions$1;

+ 1 - 1
scripts/config.js

@@ -5,7 +5,7 @@ const cjs = require('@rollup/plugin-commonjs')
 const replace = require('@rollup/plugin-replace')
 const node = require('@rollup/plugin-node-resolve').nodeResolve
 const ts = require('rollup-plugin-typescript2')
-const babel = require('@rollup/plugin-babel').babel
+// const babel = require('@rollup/plugin-babel').babel
 
 const version = process.env.VERSION || require('../package.json').version
 const weexVersion = process.env.WEEX_VERSION || require('../packages/weex-vue-framework/package.json').version

+ 0 - 1
src/compiler/codeframe.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 const range = 2
 

+ 0 - 1
src/compiler/codegen/events.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 const fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/
 const fnInvokeRE = /\([^)]*?\);*$/

+ 0 - 1
src/compiler/codegen/index.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { genHandlers } from './events'
 import baseDirectives from '../directives/index'

+ 0 - 1
src/compiler/create-compiler.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { extend } from 'shared/util'
 import { detectErrors } from './error-detector'

+ 0 - 1
src/compiler/directives/bind.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 export default function bind(el: ASTElement, dir: ASTDirective) {
   el.wrapData = (code: string) => {

+ 0 - 1
src/compiler/directives/index.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import on from './on'
 import bind from './bind'

+ 0 - 1
src/compiler/directives/model.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 /**
  * Cross-platform code generation for component v-model

+ 0 - 1
src/compiler/directives/on.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { warn } from 'core/util/index'
 

+ 0 - 1
src/compiler/error-detector.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { dirRE, onRE } from './parser/index'
 

+ 0 - 1
src/compiler/helpers.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { emptyObject } from 'shared/util'
 import { parseFilters } from './parser/filter-parser'

+ 0 - 1
src/compiler/index.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { parse } from './parser/index'
 import { optimize } from './optimizer'

+ 0 - 1
src/compiler/optimizer.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { makeMap, isBuiltInTag, cached, no } from 'shared/util'
 

+ 0 - 1
src/compiler/parser/entity-decoder.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 let decoder
 

+ 0 - 1
src/compiler/parser/filter-parser.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 const validDivisionCharRE = /[\w).+\-_$\]]/
 

+ 0 - 1
src/compiler/parser/index.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 const he = require('he')
 // import * as he from 'he'

+ 0 - 1
src/compiler/parser/text-parser.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { cached } from 'shared/util'
 import { parseFilters } from './filter-parser'

+ 0 - 1
src/compiler/to-function.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { noop, extend } from 'shared/util'
 import { warn as baseWarn, tip } from 'core/util/debug'

+ 0 - 1
src/core/config.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { no, noop, identity } from 'shared/util'
 

+ 0 - 1
src/core/global-api/assets.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { ASSET_TYPES } from 'shared/constants'
 import type { GlobalAPI } from 'typescript/global-api'

+ 0 - 1
src/core/global-api/extend.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { ASSET_TYPES } from 'shared/constants'
 import type { Component } from 'typescript/component'

+ 0 - 1
src/core/global-api/index.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import config from '../config'
 import { initUse } from './use'

+ 0 - 1
src/core/global-api/mixin.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import type { GlobalAPI } from 'typescript/global-api'
 import { mergeOptions } from '../util/index'

+ 0 - 1
src/core/global-api/use.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import type { GlobalAPI } from 'typescript/global-api'
 import { toArray } from '../util/index'

+ 0 - 1
src/core/instance/events.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import type { Component } from 'typescript/component'
 import {

+ 0 - 1
src/core/instance/init.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import config from '../config'
 import { initProxy } from './proxy'

+ 0 - 1
src/core/instance/inject.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { hasOwn } from 'shared/util'
 import { warn, hasSymbol } from '../util/index'

+ 0 - 1
src/core/instance/lifecycle.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import config from '../config'
 import Watcher from '../observer/watcher'

+ 0 - 1
src/core/instance/render-helpers/bind-dynamic-keys.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 // helper to process dynamic keys for dynamic arguments in v-bind and v-on.
 // For example, the following template:

+ 0 - 1
src/core/instance/render-helpers/bind-object-listeners.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { warn, extend, isPlainObject } from 'core/util/index'
 import type { VNodeData } from 'typescript/vnode'

+ 0 - 1
src/core/instance/render-helpers/bind-object-props.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import config from 'core/config'
 

+ 0 - 1
src/core/instance/render-helpers/check-keycodes.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import config from 'core/config'
 import { hyphenate } from 'shared/util'

+ 0 - 1
src/core/instance/render-helpers/index.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { toNumber, toString, looseEqual, looseIndexOf } from 'shared/util'
 import { createTextVNode, createEmptyVNode } from 'core/vdom/vnode'

+ 0 - 1
src/core/instance/render-helpers/resolve-slots.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import type VNode from 'core/vdom/vnode'
 import type { Component } from 'typescript/component'

+ 0 - 1
src/core/instance/render.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import {
   warn,

+ 0 - 1
src/core/instance/state.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import config from '../config'
 import Watcher from '../observer/watcher'

+ 0 - 1
src/core/observer/scheduler.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import type Watcher from './watcher'
 import config from '../config'

+ 0 - 1
src/core/observer/traverse.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { _Set as Set, isObject } from '../util/index'
 import type { SimpleSet } from '../util/index'

+ 0 - 1
src/core/observer/watcher.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import {
   warn,

+ 0 - 1
src/core/util/debug.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import config from '../config'
 import { noop } from 'shared/util'

+ 0 - 1
src/core/util/env.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 // can we use __proto__?
 export const hasProto = '__proto__' in {}

+ 0 - 1
src/core/util/index.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 export * from 'shared/util'
 export * from './lang'

+ 0 - 1
src/core/util/lang.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 /**
  * unicode letters used for parsing html tags, component names and property paths.

+ 0 - 1
src/core/util/next-tick.ts

@@ -1,4 +1,3 @@
-/* @flow */
 /* globals MutationObserver */
 
 import { noop } from 'shared/util'

+ 0 - 1
src/core/util/options.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import config from '../config'
 import { warn } from './debug'

+ 0 - 1
src/core/util/props.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { warn } from './debug'
 import { observe, toggleObserving, shouldObserve } from '../observer/index'

+ 0 - 1
src/core/vdom/create-component.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import VNode from './vnode'
 import { resolveConstructorOptions } from 'core/instance/init'

+ 0 - 1
src/core/vdom/create-element.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import config from '../config'
 import VNode, { createEmptyVNode } from './vnode'

+ 0 - 1
src/core/vdom/create-functional-component.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import VNode, { cloneVNode } from './vnode'
 import { createElement } from './create-element'

+ 0 - 1
src/core/vdom/helpers/extract-props.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import {
   tip,

+ 0 - 1
src/core/vdom/helpers/get-first-component-child.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { isDef } from 'shared/util'
 import VNode from '../vnode'

+ 0 - 1
src/core/vdom/helpers/index.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 export * from './merge-hook'
 export * from './extract-props'

+ 0 - 1
src/core/vdom/helpers/is-async-placeholder.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import VNode from '../vnode'
 

+ 0 - 1
src/core/vdom/helpers/merge-hook.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import VNode from '../vnode'
 import { createFnInvoker } from './update-listeners'

+ 0 - 1
src/core/vdom/helpers/normalize-children.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import VNode, { createTextVNode } from 'core/vdom/vnode'
 import { isFalse, isTrue, isDef, isUndef, isPrimitive } from 'shared/util'

+ 0 - 1
src/core/vdom/helpers/normalize-scoped-slots.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { def } from 'core/util/lang'
 import { normalizeChildren } from 'core/vdom/helpers/normalize-children'

+ 0 - 1
src/core/vdom/helpers/resolve-async-component.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import {
   warn,

+ 0 - 1
src/core/vdom/modules/directives.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { emptyNode } from 'core/vdom/patch'
 import { resolveAsset, handleError } from 'core/util/index'

+ 0 - 1
src/core/vdom/modules/ref.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { remove, isDef } from 'shared/util'
 import type { VNodeWithData } from 'typescript/vnode'

+ 0 - 1
src/platforms/web/compiler/directives/html.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { addProp } from 'compiler/helpers'
 

+ 0 - 1
src/platforms/web/compiler/directives/model.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import config from 'core/config'
 import { addHandler, addProp, getBindingAttr } from 'compiler/helpers'

+ 0 - 1
src/platforms/web/compiler/directives/text.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { addProp } from 'compiler/helpers'
 

+ 0 - 1
src/platforms/web/compiler/index.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { baseOptions } from './options'
 import { createCompiler } from 'compiler/index'

+ 0 - 1
src/platforms/web/compiler/modules/class.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { parseText } from 'compiler/parser/text-parser'
 import { getAndRemoveAttr, getBindingAttr, baseWarn } from 'compiler/helpers'

+ 0 - 1
src/platforms/web/compiler/modules/model.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 /**
  * Expand input[v-model] with dynamic type bindings into v-if-else chains

+ 0 - 1
src/platforms/web/compiler/modules/style.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { parseText } from 'compiler/parser/text-parser'
 import { parseStyleText } from 'web/util/style'

+ 0 - 1
src/platforms/web/compiler/options.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import {
   isPreTag,

+ 0 - 1
src/platforms/web/compiler/util.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { makeMap } from 'shared/util'
 

+ 0 - 1
src/platforms/web/entry-compiler.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 export { parseComponent } from 'sfc/parser'
 export { compile, compileToFunctions } from './compiler/index'

+ 0 - 1
src/platforms/web/entry-runtime-with-compiler.ts

@@ -1,4 +1,3 @@
-/* @flow */
 import config from 'core/config'
 import { warn, cached } from 'core/util/index'
 import { mark, measure } from 'core/util/perf'

+ 0 - 1
src/platforms/web/entry-runtime.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import Vue from './runtime/index'
 

+ 0 - 1
src/platforms/web/entry-server-basic-renderer.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import modules from './server/modules/index'
 import directives from './server/directives/index'

+ 0 - 1
src/platforms/web/entry-server-renderer.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 process.env.VUE_ENV = 'server'
 

+ 0 - 1
src/platforms/web/runtime/class-util.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 const whitespaceRE = /\s+/
 

+ 0 - 1
src/platforms/web/runtime/components/transition.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 // Provides transition support for a single element/component.
 // supports transition mode (out-in / in-out)

+ 0 - 1
src/platforms/web/runtime/directives/show.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import VNode from 'core/vdom/vnode'
 import type { VNodeDirective, VNodeWithData } from 'typescript/vnode'

+ 0 - 1
src/platforms/web/runtime/modules/attrs.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { isIE, isIE9, isEdge } from 'core/util/env'
 

+ 0 - 1
src/platforms/web/runtime/modules/class.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { isDef, isUndef } from 'shared/util'
 import type { VNodeData } from 'typescript/vnode'

+ 0 - 1
src/platforms/web/runtime/modules/dom-props.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { isDef, isUndef, extend, toNumber } from 'shared/util'
 import type { VNodeWithData } from 'typescript/vnode'

+ 0 - 1
src/platforms/web/runtime/modules/events.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { isDef, isUndef } from 'shared/util'
 import { updateListeners } from 'core/vdom/helpers/index'

+ 0 - 1
src/platforms/web/runtime/modules/style.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { getStyle, normalizeStyleBinding } from 'web/util/style'
 import {

+ 0 - 1
src/platforms/web/runtime/modules/transition.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { inBrowser, isIE9, warn } from 'core/util/index'
 import { mergeVNodeHook } from 'core/vdom/helpers/index'

+ 0 - 1
src/platforms/web/runtime/node-ops.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import VNode from 'core/vdom/vnode'
 import { namespaceMap } from 'web/util/index'

+ 0 - 1
src/platforms/web/runtime/patch.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import * as nodeOps from 'web/runtime/node-ops'
 import { createPatchFunction } from 'core/vdom/patch'

+ 0 - 1
src/platforms/web/server/compiler.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { baseOptions } from '../compiler/options'
 import { createCompiler } from 'server/optimizing-compiler/index'

+ 0 - 1
src/platforms/web/server/directives/model.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { looseEqual, looseIndexOf } from 'shared/util'
 import type { VNodeDirective, VNodeWithData } from 'typescript/vnode'

+ 0 - 1
src/platforms/web/server/directives/show.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import type { VNodeDirective, VNodeWithData } from 'typescript/vnode'
 

+ 0 - 1
src/platforms/web/server/modules/attrs.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { escape } from '../util'
 

+ 0 - 1
src/platforms/web/server/modules/class.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { escape } from '../util'
 import { genClassForVnode } from 'web/util/index'

+ 0 - 1
src/platforms/web/server/modules/dom-props.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import VNode from 'core/vdom/vnode'
 import { renderAttr } from './attrs'

+ 0 - 1
src/platforms/web/server/modules/style.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { escape, noUnitNumericStyleProps } from '../util'
 import { hyphenate } from 'shared/util'

+ 0 - 1
src/platforms/web/server/util.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { makeMap } from 'shared/util'
 

+ 0 - 1
src/platforms/web/util/attrs.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { makeMap } from 'shared/util'
 

+ 0 - 1
src/platforms/web/util/class.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import VNode from 'core/vdom/vnode'
 import { isDef, isObject } from 'shared/util'

+ 0 - 1
src/platforms/web/util/compat.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { inBrowser } from 'core/util/index'
 

+ 0 - 1
src/platforms/web/util/element.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { inBrowser } from 'core/util/env'
 import { makeMap } from 'shared/util'

+ 0 - 1
src/platforms/web/util/index.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import { warn } from 'core/util/index'
 

+ 0 - 1
src/platforms/web/util/style.ts

@@ -1,4 +1,3 @@
-/* @flow */
 
 import VNode from 'core/vdom/vnode'
 import { cached, extend, toObject } from 'shared/util'

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików