Skip to content

Commit

Permalink
chore: 修改文件名
Browse files Browse the repository at this point in the history
  • Loading branch information
Tingkeng Wang committed Jul 16, 2021
1 parent 9678c87 commit 9dbccc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default `hello ${name}!`;
export const name = 'world';
```
```
//bundler.js
//webpack.js
// 读取文件信息,并获得当前js文件的依赖关系
function createAsset(filename) {//代码略}
// 从入口开始分析所有依赖项,形成依赖图,采用广度遍历
Expand All @@ -33,7 +33,7 @@ function bundle(graph) {//代码略}
```
`entry.js` 就是我们的入口文件,文件的依赖关系是,`entry.js`依赖`message.js``message.js`依赖`name.js`

`bundler.js` 是我们简易版的webpack
`webpack.js` 是我们简易版的webpack


目录结构
Expand All @@ -42,7 +42,7 @@ function bundle(graph) {//代码略}
- entry.js
- message.js
- name.js
- bundler.js
- webpack.js
```

### 如何分析依赖
Expand Down Expand Up @@ -71,7 +71,7 @@ createAsset("./example/entry.js");


### 源码
[点击查看源码](https://github.com/tkaabbc/simple-webpack/blob/master/bundler.js)
[点击查看源码](https://github.com/tkaabbc/simple-webpack/blob/master/webpack.js)
## 最后
文章可能有不足的地方,请大家见谅,如果有什么疑问可以下方留言讨论。

Expand Down
File renamed without changes.

0 comments on commit 9dbccc9

Please sign in to comment.