Skip to content

Commit 7000b52

Browse files
authored
chore: fix typos (#10490)
1 parent 1c2d7ab commit 7000b52

File tree

11 files changed

+29
-29
lines changed

11 files changed

+29
-29
lines changed

packages/rspack-test-tools/src/processor/normal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class NormalProcessor<
119119
.concat(function (this: TCompiler<T>) {
120120
this.hooks.compilation.tap("TestCasesTest", compilation => {
121121
const hooks: never[] = [
122-
// CHANGE: the follwing hooks are not supported yet, so comment it out
122+
// CHANGE: the following hooks are not supported yet, so comment it out
123123
// "optimize",
124124
// "optimizeModules",
125125
// "optimizeChunks",

packages/rspack-test-tools/tests/builtinCases/plugin-javascript/provide/__snapshots__/output.snap.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function defaultClearTimeout() {
7474
})();
7575
function runTimeout(fun) {
7676
if (cachedSetTimeout === setTimeout) {
77-
//normal enviroments in sane situations
77+
//normal environments in sane situations
7878
return setTimeout(fun, 0);
7979
}
8080
// if setTimeout wasn't available but was latter defined
@@ -86,21 +86,21 @@ function runTimeout(fun) {
8686
return setTimeout(fun, 0);
8787
}
8888
try {
89-
// when when somebody has screwed with setTimeout but no I.E. maddness
89+
// when when somebody has screwed with setTimeout but no I.E. madness
9090
return cachedSetTimeout(fun, 0);
9191
} catch (e) {
9292
try {
9393
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
9494
return cachedSetTimeout.call(null, fun, 0);
9595
} catch (e) {
96-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
96+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopefully our context correct otherwise it will throw a global error
9797
return cachedSetTimeout.call(this, fun, 0);
9898
}
9999
}
100100
}
101101
function runClearTimeout(marker) {
102102
if (cachedClearTimeout === clearTimeout) {
103-
//normal enviroments in sane situations
103+
//normal environments in sane situations
104104
return clearTimeout(marker);
105105
}
106106
// if clearTimeout wasn't available but was latter defined
@@ -112,14 +112,14 @@ function runClearTimeout(marker) {
112112
return clearTimeout(marker);
113113
}
114114
try {
115-
// when when somebody has screwed with setTimeout but no I.E. maddness
115+
// when when somebody has screwed with setTimeout but no I.E. madness
116116
return cachedClearTimeout(marker);
117117
} catch (e) {
118118
try {
119119
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
120120
return cachedClearTimeout.call(null, marker);
121121
} catch (e) {
122-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
122+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopefully our context correct otherwise it will throw a global error.
123123
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
124124
return cachedClearTimeout.call(this, marker);
125125
}
@@ -182,7 +182,7 @@ process.nextTick = function (fun) {
182182
}
183183
};
184184

185-
// v8 likes predictible objects
185+
// v8 likes predictable objects
186186
function Item(fun, array) {
187187
this.fun = fun;
188188
this.array = array;

packages/rspack-test-tools/tests/builtinCases/plugin-javascript/provide/process.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function defaultClearTimeout() {
3737
})();
3838
function runTimeout(fun) {
3939
if (cachedSetTimeout === setTimeout) {
40-
//normal enviroments in sane situations
40+
//normal environments in sane situations
4141
return setTimeout(fun, 0);
4242
}
4343
// if setTimeout wasn't available but was latter defined
@@ -49,21 +49,21 @@ function runTimeout(fun) {
4949
return setTimeout(fun, 0);
5050
}
5151
try {
52-
// when when somebody has screwed with setTimeout but no I.E. maddness
52+
// when when somebody has screwed with setTimeout but no I.E. madness
5353
return cachedSetTimeout(fun, 0);
5454
} catch (e) {
5555
try {
5656
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
5757
return cachedSetTimeout.call(null, fun, 0);
5858
} catch (e) {
59-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
59+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopefully our context correct otherwise it will throw a global error
6060
return cachedSetTimeout.call(this, fun, 0);
6161
}
6262
}
6363
}
6464
function runClearTimeout(marker) {
6565
if (cachedClearTimeout === clearTimeout) {
66-
//normal enviroments in sane situations
66+
//normal environments in sane situations
6767
return clearTimeout(marker);
6868
}
6969
// if clearTimeout wasn't available but was latter defined
@@ -75,14 +75,14 @@ function runClearTimeout(marker) {
7575
return clearTimeout(marker);
7676
}
7777
try {
78-
// when when somebody has screwed with setTimeout but no I.E. maddness
78+
// when when somebody has screwed with setTimeout but no I.E. madness
7979
return cachedClearTimeout(marker);
8080
} catch (e) {
8181
try {
8282
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
8383
return cachedClearTimeout.call(null, marker);
8484
} catch (e) {
85-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
85+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopefully our context correct otherwise it will throw a global error.
8686
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
8787
return cachedClearTimeout.call(this, marker);
8888
}
@@ -145,7 +145,7 @@ process.nextTick = function (fun) {
145145
}
146146
};
147147

148-
// v8 likes predictible objects
148+
// v8 likes predictable objects
149149
function Item(fun, array) {
150150
this.fun = fun;
151151
this.array = array;

packages/rspack-test-tools/tests/configCases/builtins/provide/process.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function defaultClearTimeout() {
3737
})();
3838
function runTimeout(fun) {
3939
if (cachedSetTimeout === setTimeout) {
40-
//normal enviroments in sane situations
40+
//normal environments in sane situations
4141
return setTimeout(fun, 0);
4242
}
4343
// if setTimeout wasn't available but was latter defined
@@ -49,21 +49,21 @@ function runTimeout(fun) {
4949
return setTimeout(fun, 0);
5050
}
5151
try {
52-
// when when somebody has screwed with setTimeout but no I.E. maddness
52+
// when when somebody has screwed with setTimeout but no I.E. madness
5353
return cachedSetTimeout(fun, 0);
5454
} catch (e) {
5555
try {
5656
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
5757
return cachedSetTimeout.call(null, fun, 0);
5858
} catch (e) {
59-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
59+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopefully our context correct otherwise it will throw a global error
6060
return cachedSetTimeout.call(this, fun, 0);
6161
}
6262
}
6363
}
6464
function runClearTimeout(marker) {
6565
if (cachedClearTimeout === clearTimeout) {
66-
//normal enviroments in sane situations
66+
//normal environments in sane situations
6767
return clearTimeout(marker);
6868
}
6969
// if clearTimeout wasn't available but was latter defined
@@ -75,14 +75,14 @@ function runClearTimeout(marker) {
7575
return clearTimeout(marker);
7676
}
7777
try {
78-
// when when somebody has screwed with setTimeout but no I.E. maddness
78+
// when when somebody has screwed with setTimeout but no I.E. madness
7979
return cachedClearTimeout(marker);
8080
} catch (e) {
8181
try {
8282
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
8383
return cachedClearTimeout.call(null, marker);
8484
} catch (e) {
85-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
85+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopefully our context correct otherwise it will throw a global error.
8686
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
8787
return cachedClearTimeout.call(this, marker);
8888
}
@@ -145,7 +145,7 @@ process.nextTick = function (fun) {
145145
}
146146
};
147147

148-
// v8 likes predictible objects
148+
// v8 likes predictable objects
149149
function Item(fun, array) {
150150
this.fun = fun;
151151
this.array = array;

packages/rspack-test-tools/tests/configCases/module-variables/webpack-public-path/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ it("__webpack_public_path__", function () {
77
expect(__webpack_require__.p).toBe("/a");
88
});
99

10-
it("__webpack_public_path__ use as local varable", function () {
10+
it("__webpack_public_path__ use as local variable", function () {
1111
var __webpack_public_path__ = "/test";
1212
// __webpack_require__.p set by prev test
1313
expect(__webpack_require__.p).toBe("/a");

packages/rspack-test-tools/tests/configCases/module/match-resource-mimetype/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import source from "./a.js!=!data:javascript,var b, c;export const a = (b ?? (c ??= 2 ** 2))";
22

3-
it("should transformed to es3 snytax", () => {
3+
it("should transformed to es3 syntax", () => {
44
expect(source.includes("??")).toBe(false)
55
expect(source.includes("??=")).toBe(false)
66
expect(source.includes("**")).toBe(false)

packages/rspack-test-tools/tests/configCases/source-map/verify-css-js-mix/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ it("verify importing css js source map", async () => {
2424
const out = fs.readFileSync(__filename, "utf-8");
2525
expect(
2626
await checkMap(out, source, {
27-
// *${id}* as the search key to aviod conflict with `Object.defineProperty(exports, ${id}, ...)`
27+
// *${id}* as the search key to avoid conflict with `Object.defineProperty(exports, ${id}, ...)`
2828
['"*a0*"']: "webpack:///a.js",
2929
['"*a1*"']: "webpack:///a.js"
3030
}, false)

packages/rspack-test-tools/tests/configCases/source-map/verify-es6-minify/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ it("verify es6 (esmodule) minify bundle source map", async () => {
2424
const out = fs.readFileSync(__filename, "utf-8");
2525
expect(
2626
await checkMap(out, source, {
27-
// *${id}* as the search key to aviod conflict with `Object.defineProperty(exports, ${id}, ...)`
27+
// *${id}* as the search key to avoid conflict with `Object.defineProperty(exports, ${id}, ...)`
2828
// "*a0*", "*a1*" is eliminate by minify
2929
['"*a2*"']: checkColumn("webpack:///a.js"),
3030
// "*b0*", "*b1*" is eliminate by minify

packages/rspack-test-tools/tests/configCases/source-map/verify-es6/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ it("verify es6 (esmodule) bundle source map", async () => {
2121
const out = fs.readFileSync(__filename, "utf-8");
2222
expect(
2323
await checkMap(out, source, {
24-
// *${id}* as the search key to aviod conflict with `Object.defineProperty(exports, ${id}, ...)`
24+
// *${id}* as the search key to avoid conflict with `Object.defineProperty(exports, ${id}, ...)`
2525
['"*a0*"']: "webpack:///a.js",
2626
['"*a1*"']: "webpack:///a.js",
2727
// The result is generated upon `OriginalSource`

tests/webpack-examples/module-federation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export default App;
290290
<!-- A spinner -->
291291
<div class="spinner"></div>
292292

293-
<!-- This script only contains boostrapping logic -->
293+
<!-- This script only contains bootstrapping logic -->
294294
<!-- It will load all other scripts if necessary -->
295295
<script src="/dist/aaa/app.js" async></script>
296296

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
module.exports = () => "FIXME: context module aboslute resource path"
2+
module.exports = () => "FIXME: context module absolute resource path"

0 commit comments

Comments
 (0)