Skip to content

Commit

Permalink
fix: correct typo in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lkb85 committed Feb 6, 2025
1 parent 65364ca commit 664aade
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/pigment-css-nextjs-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function withPigment(nextConfig: NextConfig, pigmentConfig?: PigmentOptio
},
async asyncResolve(what: string, importer: string, stack: string[]) {
// Using the same stub file as "next/font". Should be updated in future to
// use it's own stub depdending on the actual usage.
// use its own stub depending on the actual usage.
if (what.startsWith('__barrel_optimize__')) {
return require.resolve('../next-font');
}
Expand Down
2 changes: 1 addition & 1 deletion packages/pigment-css-react/src/generateAtomics.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import cx from 'clsx';
/**
* `__wyw_dynamic_import` is a special global var that is set during the evaluation phase by wyw.
* So during eval phase, it can happen that some code is calling the runtime function.
* We do not want to throw error in that case as we want the evaluation to happen.
* We do not want to throw an error in that case as we want the evaluation to happen.
*/
export function generateAtomics() {
if (typeof __wyw_dynamic_import !== 'undefined') {
Expand Down
2 changes: 1 addition & 1 deletion packages/pigment-css-react/src/processors/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export class StyledProcessor extends BaseProcessor {
'theme',
);
// all the variant definitions are collected here so that we can
// apply variant styles after base styles for more specific targetting.
// apply variant styles after base styles for more specific targeting.
let variantsAccumulator: VariantData[] = [];
(this.styleArgs as ExpressionValue[]).forEach((styleArg) => {
this.processStyle(values, styleArg, variantsAccumulator, themeImportIdentifier.name);
Expand Down
2 changes: 1 addition & 1 deletion packages/pigment-css-unplugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export const plugin = createUnplugin<PigmentOptions, true>((options) => {
cssText = await handleUrlReplacement(cssText, id, asyncResolve, projectPath);
}

// Valid names must start with a underscore or letter.
// Valid names must start with an underscore or letter.
const layerName = `_${slug}`;

// Fix for https://github.com/mui/pigment-css/issues/199
Expand Down
2 changes: 1 addition & 1 deletion packages/pigment-css-utils/src/base-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { BaseProcessor as WywBaseProcessor } from '@wyw-in-js/processor-utils';

/**
* This is going to be expanded when the react package comes into picture.
* Right now, it only has the bare mimimum.
* Right now, it only has the bare minimum.
*/
export default abstract class BaseProcessor extends WywBaseProcessor {}

0 comments on commit 664aade

Please sign in to comment.