Skip to content

Commit 45194fc

Browse files
committed
Fix typos in comments and docs
1 parent aaa627a commit 45194fc

10 files changed

Lines changed: 11 additions & 11 deletions

File tree

packages/@lwc/rollup-plugin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default {
3636
- `enableLwcSpread` (type: `boolean`, default: `false`) - The configuration to pass to the `@lwc/template-compiler`.
3737
- `enableLwcOn` (type: `boolean`, default: `false`) - The configuration to pass to the `@lwc/template-compiler`.
3838
- `disableSyntheticShadowSupport` (type: `boolean`, default: `false`) - Set to true if synthetic shadow DOM support is not needed, which can result in smaller output.
39-
- `apiVersion` (type: `number`, default: `undefined`) - Set to a valid API version such as 58, 59, etc. This will be overriden if the component itself overrides the version with a `*.js-meta.xml` file.
39+
- `apiVersion` (type: `number`, default: `undefined`) - Set to a valid API version such as 58, 59, etc. This will be overridden if the component itself overrides the version with a `*.js-meta.xml` file.
4040
- `enableStaticContentOptimization` (type: `boolean`, optional) - True if the static content optimization should be enabled. Passed to `@lwc/template-compiler`. True by default.
4141
- `targetSSR` (type: `boolean`) - Utilize the experimental SSR compilation mode. False by default. Do not use unless you know what you're doing.
4242
- `ssrMode` (type: `string`): The variety of SSR code that should be generated when using experimental SSR compilation mode. Should be one of `sync`, `async` or `asyncYield`.

packages/@lwc/ssr-compiler/src/__tests__/fixtures.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface FixtureConfig {
2525
/** Props to provide to the top-level component. */
2626
props?: Record<string, string | string[]>;
2727

28-
/** Output files used by ssr-compiler, when the output needs to differ fron engine-server */
28+
/** Output files used by ssr-compiler, when the output needs to differ from engine-server */
2929
ssrFiles?: {
3030
error?: string;
3131
expected?: string;

packages/@lwc/ssr-compiler/src/__tests__/fixtures/read-only-props/function/modules/x/component/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default class extends LightningElement {
1111
this.foo.mutated = true;
1212

1313
// Mutating the proxy should not work in V1 but will work in V2.
14-
// The V2 implementation returns the original object as readonly invokation
14+
// The V2 implementation returns the original object as readonly invocation
1515
// is deprecated and will be removed.
1616
try {
1717
this.readonlyFoo.readonlyMutated = true;

packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/invalid-non-alphanumeric/actual.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<!-- These are valid javascript propery names but their usage is restricted by template-compiler
2+
<!-- These are valid javascript property names but their usage is restricted by template-compiler
33
This test case is to just document the existing precedent-->
44

55
<!-- leading latin characters-->

packages/@lwc/template-compiler/src/codegen/codegen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export default class CodeGen {
341341
}
342342

343343
/**
344-
* Generates childs vnodes when slot content is static.
344+
* Generates child vnodes when slot content is static.
345345
* @param slotName
346346
* @param data
347347
* @param children

packages/@lwc/template-compiler/src/codegen/static-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export function transformStaticChildren(elm: StaticElement, preserveComments: bo
211211
return result;
212212
}
213213

214-
// Given a static child, determines wether the child is a contiguous text node.
214+
// Given a static child, determines whether the child is a contiguous text node.
215215
// Note this is intended to be used with children generated from transformStaticChildren
216216
export const isContiguousText = (staticChild: StaticChildNode | Text[]): staticChild is Text[] =>
217217
isArray(staticChild) && ArrayEvery.call(staticChild, isText);

packages/@lwc/template-compiler/src/parser/expression-complex/validate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function validateLiteral(node: t.Literal) {
9999
['BigInts']
100100
);
101101
// Regular expression literals are difficult to visually parse, and
102-
// may be difficult to programatically parse with future parsing methods. For those
102+
// may be difficult to programmatically parse with future parsing methods. For those
103103
// reasons, they are also disallowed.
104104
invariant(
105105
(node as t.RegExpLiteral).regex === undefined,

packages/@lwc/template-compiler/src/parser/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ function parseText(
488488
const tokenizedContent = rawText.split(EXPRESSION_RE);
489489

490490
for (const token of tokenizedContent) {
491-
// Don't create nodes for emtpy strings
491+
// Don't create nodes for empty strings
492492
if (!token.length) {
493493
continue;
494494
}
@@ -519,7 +519,7 @@ function parseTextComplex(
519519

520520
while (index < rawText.length) {
521521
if (rawText[index] === EXPRESSION_SYMBOL_START) {
522-
// Parse any literal that preceeded the expression
522+
// Parse any literal that preceded the expression
523523
if (start < index) {
524524
const literalToken = rawText.slice(start, index);
525525
parsedTextNodes.push(

packages/@lwc/template-compiler/src/parser/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export default class ParserCtx {
187187
}
188188

189189
/**
190-
* This method searchs the current scope and returns the value that satisfies the predicate.
190+
* This method searches the current scope and returns the value that satisfies the predicate.
191191
* @param predicate This callback is called once for each sibling in the current scope
192192
* until it finds one where predicate returns true.
193193
*/

scripts/release/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function updatePackages(newVersion) {
6464
}
6565
}
6666

67-
// Update package.json files and print updated packges
67+
// Update package.json files and print updated packages
6868
for (const { originalVersion, packageJson, packageJsonPath } of packagesToUpdate) {
6969
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 4) + '\n');
7070
console.log(

0 commit comments

Comments
 (0)