Skip to content

Commit 66bbfea

Browse files
committed
docs(cn): resolve conflicts
1 parent f0a84c1 commit 66bbfea

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

docs/configuration-options/index.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,18 +1355,11 @@ import('external2').then(console.log);
13551355
console.log(ext_default__default.default);
13561356
```
13571357

1358-
<<<<<<< HEAD
13591358
- `"defaultOnly"``"default"` 类似,但有以下几点区别:
13601359

13611360
- 禁止命名引入。如果遇到这样的引入,Rollup 会抛出一个错误,即使是 `es``system` 格式。这样可以确保 `es` 版本的代码能够正确引入 Node 中的非内置 CommonJS 模块。
13621361
- 虽然命名空间内再次输出 `export * from 'external';` 不被禁止,但会被忽略掉,并且会导致 Rollup 抛出警告,因为如果没有命名的输出,它们并不会产生影响。
13631362
- 当一个命名空间对象生成时,Rollup 将会使用一个更简单的辅助函数。
1364-
=======
1365-
- `"defaultOnly"` is similar to `"default"` except for the following:
1366-
- Named imports are forbidden. If such an import is encountered, Rollup throws an error even in `es` and `system` formats. That way it is ensures that the `es` version of the code is able to import non-builtin CommonJS modules in Node correctly.
1367-
- While namespace reexports `export * from 'external';` are not prohibited, they are ignored and will cause Rollup to display a warning because they would not have an effect if there are no named exports.
1368-
- When a namespace object is generated, Rollup uses a much simpler helper.
1369-
>>>>>>> 9cebb0b6d9f03d11f53a8c3e7e9e3a79f567e3c6
13701363

13711364
下面示例代码展示了 Rollup 产生的内容。注意,我们从代码中删除了 `external.bar`,否则,Rollup 会抛出一个错误,因为如上所述,这等同于一个命名引入。
13721365

0 commit comments

Comments
 (0)