You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> 💡 These`.css.ts` files will be evaluated at build time. None of the code in these files will be included in your final bundle. Think of it as using TypeScript as your preprocessor instead of Sass, Less, etc.
59
+
> 💡 Once you've [configured your build tooling,](#setup) these`.css.ts` files will be evaluated at build time. None of the code in these files will be included in your final bundle. Think of it as using TypeScript as your preprocessor instead of Sass, Less, etc.
60
60
61
61
**Then consume them in your markup.**
62
62
@@ -83,6 +83,7 @@ Want to work at a higher level while maximising style re-use? Check out 🍨 [S
> Please note: There are currently no automatic readable class names during development. However, you can still manually provide a debug ID as the last argument to functions that generate scoped styles, e.g. `export const className = style({ ... }, 'className');`
2. If you don't have a `.babelrc` file in the root of your project, create one. Add the [Babel](https://babeljs.io) plugin to your `.babelrc` file, ensuring that you're also including `"next/babel"` in your `presets` array.
298
+
299
+
```json
300
+
{
301
+
"presets": ["next/babel"],
302
+
"plugins": ["@vanilla-extract/babel-plugin"]
303
+
}
304
+
```
305
+
306
+
3. If you don't have a `next.config.js` file in the root of your project, create one. Add the [Next.js](https://nextjs.org) plugin to your `next.config.js` file.
307
+
308
+
> 💡 This plugin accepts an optional [configuration object](#configuration).
To add to your [Gatsby](https://www.gatsbyjs.com) site, use the [gatsby-plugin-vanilla-extract](https://github.com/KyleAMathews/gatsby-plugin-vanilla-extract) plugin.
0 commit comments