vue2.6.11源码结构

222 阅读1分钟

vue2.6.11源码结构

vue2.6.11源码结构.png

compiler

codegen

  • event.js
  • index.js

directives

  • bind.js
  • index.js
  • model.js
  • on.js

parser

  • entity-decoder.js
  • filter-parser.js
  • html-parser.js
  • index.js
  • text-parser.js

codeframe.js

create-compiler.js

error-detector.js

helpers.js

index.js

optimizer.js

to-function.js

core

componnents

  • index.js
  • keep-alive.js

global-api

  • assets.js
  • extend.js
  • index.js
  • mixin.js
  • use.js

instance

  • render-helpers

    • bind-dynamic-keys.js
    • bind-object-listeners.js
    • bind-object-props.js
    • check-keycodes.js
    • index.js
    • render-list.js
    • render-slot.js
    • render-static.js
    • resolve-filter.js
    • resolve-scoped-slots.js
    • resolve-slots.js
  • events.js

  • index.js

  • init.js

  • inject.js

  • lifecycle.js

  • proxy.js

  • render.js

  • state.js

objserver

  • array.js
  • dep.js
  • index.js
  • scheduler.js
  • traverse.js
  • watcher.js

util

  • debug.js
  • env.js
  • error.js
  • index.js
  • lang.js
  • next-tick.js
  • options.js
  • perf.js
  • props.js

vdom

  • helpers

    • extract-props.js
    • get-first-component-child.js
    • index.js
    • is-async-placeholder.js
    • merge-hook.js
    • normalize-children.js
    • normalize-scoped-slots.js
    • resolve-async-component.js
    • update-listeners.js
  • modules

    • directives.js
    • index.js
    • ref.js
  • create-component.js

  • create-element.js

  • create-functional-component.js

  • patch.js

  • vnode.js

config.js

index.js

platforms

web

  • compiler

    • directives

      • html.js
      • index.js
      • model.js
      • text.js
    • modules

      • class.js
      • index.js
      • model.js
      • style.js
    • index.js

    • options.js

    • util.js

  • runtime

    • components

      • index.js
      • transition.js
      • transition-group.js
    • direcrtives

      • index.js
      • model.js
      • show.js
    • modules

      • attrs.js
      • class.js
      • dom-props.js
      • events.js
      • index.js
      • style.js
      • transition.js
    • class-util.js

    • index.js

    • node-ops.js

    • patch.js

    • transition-util.js

  • server

    • directives

      • index.js
      • model.js
      • show.js
    • modules

      • style.js
      • index.js
      • dom-props.js
      • class.js
      • attrs.js
    • compiler.js

    • util.js

  • util

    • attrs.js
    • class.js
    • compat.js
    • element.js
    • index.js
    • style.js
  • entry-compiler.js

  • entry-runtime.js

  • entry-runtime-with-compiler.js

  • entry-server-basic-renderer.js

  • entry-server-renderer.js

weex

  • compiler

    • directives

      • index.js
      • model.js
    • modules

      • recycle-list

        • component.js
        • component-root.js
        • index.js
        • recycle-list.js
        • text.js
        • v-bind.js
        • v-for.js
        • v-if.js
        • v-on.js
        • v-once.js
      • append.js

      • class.js

      • index.js

      • props.js

      • style.js

    • index.js

  • runtime

    • components

      • index.js
      • richtext.js
      • transition.js
      • transition-group.js
    • directives

      • index.js
    • modules

      • attrs.js
      • class.js
      • events.js
      • index.js
      • style.js
      • transition.js
    • recycle-list

      • render-component-template.js
      • virual-component.js
    • index.js

    • node-ops.js

    • patch.js

    • text-node.js

  • util

    • element.js
    • index.js
    • parser.js
  • entry-compiler.js

  • entry-framework.js

  • entry-runtime-factory.js

server

bundle-renderer

  • create-bundle-renderer.js
  • create-bundle-runner.js
  • source-map-support.js

optimizing-compiler

  • codegen.js
  • index.js
  • modules.js
  • optimizer.js
  • runtime-helpers.js

template-renderer

  • create-async-file-mapper.js
  • index.js
  • parse-template.js
  • template-stream.js

webpack-plugin

  • client.js
  • server.js
  • util.js

create-basic-renderer.js

create-renderer.js

render.js

render-context.js

render-stream.js

util.js

write.js

sfc

parser.js

shared

constants.js

util.js