Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vite-plugin-mock-dev-server/src/compiler/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class Compiler extends EventEmitter {
* 性能开销,从而影响编译速度。
* 实测在控制并发数的前提下,总编译时间 差异不大,但内存开销更小更加稳定。
*/
.then(files => files.map(file => () => this.load(path.join(this.options.dir, file))))
.then(files => files.map(file => () => this.load(normalizePath(path.join(this.options.dir, file)))))
.then(loaders => promiseParallel(loaders, 64))
.then(() => this.updateMockData())

Expand Down