Skip to content

打包工具的 bundle 主流程 #22

Description

@noneven
  • 1、入口文件路径生成、配置文件解析
  • 2、构建扁平依赖树
    • 初始化依赖树 deepTree
    • 读取文件 => 跑一边所有的 loader
    • 生成 AST
    • 根据 AST 解析模块依赖
    • 深度优先遍历将依赖的依赖
    • 将依赖扁平化到 deepTree,包含自增 id 和模块绝对路径
  • 3、plugin hook在整个主流程的各个操作

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions