-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #497 from jeremybarbet/feat/babel-plugin-types
feat: add types definitions for the babel plugin + extra docs
- Loading branch information
Showing
6 changed files
with
110 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export interface UnistylesPluginOptions { | ||
/** | ||
* Logs found dependencies in every StyleSheet | ||
*/ | ||
debug?: boolean; | ||
|
||
/** | ||
* Only applicable for Unistyles monorepo for | ||
* path resolution, don't use it! | ||
*/ | ||
isLocal?: boolean; | ||
|
||
/** | ||
* A list of imports that should trigger Unistyles | ||
* babel plugin eg. `@codemask/ui` | ||
*/ | ||
autoProcessImports?: string[] | ||
|
||
/** | ||
* A list of paths that should trigger Unistyles babel | ||
* plugin, check the default list defined in `REPLACE_WITH_UNISTYLES_PATHS` | ||
*/ | ||
autoProcessPaths?: string[]; | ||
} | ||
|
||
export interface UnistylesPluginPass { | ||
opts: UnistylesPluginOptions; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters