Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Fix typo in code comment #377

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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 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 {}