Skip to content

Commit

Permalink
修改默认值
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Aug 17, 2015
1 parent 00b1564 commit 7347d36
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fis.hook('amd'{
}
});
```
* `forwardDeclaration` 默认为 `false`, 用来设置是否开启依赖前置,根据前端加载器来定,mod.js 是不需要的
* `skipBuiltinModules` 默认为 `true`, 只有在 `forwardDeclaration` 启动的时候才有效,用来设置前置依赖列表中是否跳过内置模块如: `require`, `module`, `exports`
* `forwardDeclaration` 默认为 `true`, 用来设置是否开启依赖前置,根据前端加载器来定。
* `skipBuiltinModules` 默认为 `false`, 只有在 `forwardDeclaration` 启动的时候才有效,用来设置前置依赖列表中是否跳过内置模块如: `require`, `module`, `exports`
* `extList` 默认为 `['.js', '.coffee', '.jsx', '.es6']`,当引用模块时没有指定后缀,该插件会尝试这些后缀。
* `tab` 默认为 `2`, 用来设置包裹时,内容缩进的空格数。
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ entry.defaultOptions = {
// 影响的结果是,依赖会提前在页面里面引入进来,而不是运行时去加载。
globalAsyncAsSync: false,

// 是否前置依赖,如果是 mod.js 千万别配置成 true
// 给那种自己实现 loader 的用户使用的。
forwardDeclaration: false,
forwardDeclaration: true,

// 当前置依赖启动的时候才有效,用来控制是否把内建的 `require`, `exports`, `module` 从第二个参数中去掉。
skipBuiltinModules: false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fis3-hook-amd",
"version": "0.0.2",
"version": "0.0.3",
"description": "fis3 amd",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 7347d36

Please sign in to comment.