Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #494 from gluestack/fix/docs-babel-config
Browse files Browse the repository at this point in the history
fix: heading ** removed
  • Loading branch information
Viraj-10 authored Oct 20, 2023
2 parents 7481d44 + 5a9e1eb commit 18d2112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/storybook/src/advanced/BabelPlugins/index.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { Box, AppProvider } from '@gluestack/design-system';

3. Just make sure your `babel.config.js` and `gluestack-style.config.js/ts` are in the same directory. We suggest you keep both of them at the root of your app codebase.

### **Let us see how this Babel plugin works.**
### Let us see how this Babel plugin works.

- First, it traverses your files and tries to find `styled` imported from `@gluestack-style/react`.
- Once it finds a declaration of `styled` it then looks for its function call.
Expand Down Expand Up @@ -196,7 +196,7 @@ module.exports = function (api) {

- `components`: The `components` option allows you to specify the library/import_path name & file path of components created using `@gluestack-style/react`. This option is useful in scenarios where you are creating a custom component with the styled function and using it with inline styles. If you want to resolve those inline styles on build time just define this option with the library name and file path of the components folder or library.

> **Note**: Even using this option if you have extended your config, added aliases, tokens or propertyResolver to a StyledComponent then it will not be resolved on build time. It will be resolved on runtime.
> Note: Even using this option if you have extended your config, added aliases, tokens or propertyResolver to a StyledComponent then it will not be resolved on build time. It will be resolved on runtime.
```js
// babel.config.js
Expand Down

0 comments on commit 18d2112

Please sign in to comment.