Anber / wyw-in-js

MIT License
191 stars 8 forks source link

feat(processor-utils): Add `index` to ClassNameSlugVars #63

Closed nihgwu closed 4 months ago

nihgwu commented 4 months ago

Motivation

we use index in default slugify but not available for custom classNameSlug, this change expose index so we can achieve the same as default behaviour, we need it as we need to build it from another folder for website while the relativeFilename is different, so I have to normalise it to be the same as build from the lib

Summary

Test plan

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: c3b0b20d52cce953d70c8df33d7468ba65ef7671

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR