Skip to content

Commit bb0a811

Browse files
committed
chore: fix spelling
1 parent 31b8b92 commit bb0a811

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/utils/injectRefreshEntry.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ function injectRefreshEntry(originalEntry, options) {
7979
if (Array.isArray(originalEntry)) {
8080
const socketEntryIndex = originalEntry.findIndex(isSocketEntry);
8181

82-
let socketAndPreceedingEntries = [];
82+
let socketAndPrecedingEntries = [];
8383
if (socketEntryIndex !== -1) {
84-
socketAndPreceedingEntries = originalEntry.splice(0, socketEntryIndex + 1);
84+
socketAndPrecedingEntries = originalEntry.splice(0, socketEntryIndex + 1);
8585
}
8686

87-
return [...prependEntries, ...socketAndPreceedingEntries, ...overlayEntries, ...originalEntry];
87+
return [...prependEntries, ...socketAndPrecedingEntries, ...overlayEntries, ...originalEntry];
8888
}
8989
// Multiple entry points
9090
if (typeof originalEntry === 'object') {

test/unit/injectRefreshEntry.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ describe('injectRefreshEntry', () => {
146146
]);
147147
});
148148

149-
it('should append overlay entry for an array after socket-related entries, while keeping relative order on the original entries', () => {
149+
it('should append overlay entry for an array after socket-related entries while keeping original relative order', () => {
150150
expect(
151151
injectRefreshEntry(['setup-env.js', 'webpack-dev-server/client', 'test.js'], DEFAULT_OPTIONS)
152152
).toStrictEqual([

0 commit comments

Comments
 (0)