Skip to content

Commit 9e8539d

Browse files
committed
docs(cn): resolve conflicts
1 parent da3135a commit 9e8539d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/configuration-options/index.md

+2-7
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,8 @@ import { fileURLToPath } from 'node:url';
129129
export default {
130130
input: Object.fromEntries(
131131
globSync('src/**/*.js').map(file => [
132-
<<<<<<< HEAD
133132
// 这里将删除 `src/` 以及每个文件的扩展名。
134133
// 因此,例如 src/nested/foo.js 会变成 nested/foo
135-
=======
136-
// This removes `src/` as well as the file extension from each
137-
// file, so e.g. src/nested/foo.js becomes nested/foo
138-
>>>>>>> 19312a762c3cda56a0f6dc80a0887a4499db2257
139134
path.relative(
140135
'src',
141136
file.slice(0, file.length - path.extname(file).length)
@@ -2981,8 +2976,8 @@ export default {
29812976
29822977
### watch.onInvalidate {#watch-oninvalidate}
29832978
2984-
| | |
2985-
| ----: | :--------------------- |
2979+
| | |
2980+
| -----: | :--------------------- |
29862981
| 类型: | `(id: string) => void` |
29872982
29882983
一个可选功能,每当构建中包含的模块发生变化时将立即被调用。它会以变化模块的 id 作为参数接收。这与仅在运行构建完成后才被调用的 [`watchChange`](../plugin-development/index.md#watchchange) 插件挂钩不同。例如,如果知道当前构建完成后将启动另一个构建,则可以使用此回调来防止执行额外步骤。由于它会跟踪每次变化,因此该回调可能在整个构建过程中多次被调用。

0 commit comments

Comments
 (0)