Skip to content

Commit 4d74e2b

Browse files
authored
Document esbuildOptions in vite and rollup integration docs (#1120)
1 parent e88b6d8 commit 4d74e2b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

site/docs/integrations/rollup.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,8 @@ Different formatting of identifiers (e.g. class names, keyframes, CSS Vars, etc)
7878
- `debug` identifiers contain human readable prefixes representing the owning filename and a potential rule level debug name. e.g. `myfile_mystyle_hnw5tz3`
7979
8080
Each integration will set a default value based on the configuration options passed to the bundler.
81+
82+
### esbuildOptions
83+
84+
esbuild is used internally to compile `.css.ts` files before evaluating them to extract styles. You can pass additional options here to customize that process.
85+
Accepts a subset of esbuild build options (`plugins`, `external`, `define`, `loader` and `tsconfig`). See the [build API](https://esbuild.github.io/api/#build-api) documentation.

site/docs/integrations/vite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,8 @@ export default {
7676
]
7777
};
7878
```
79+
80+
### esbuildOptions
81+
82+
esbuild is used internally to compile `.css.ts` files before evaluating them to extract styles. You can pass additional options here to customize that process.
83+
Accepts a subset of esbuild build options (`plugins`, `external`, `define`, `loader` and `tsconfig`). See the [build API](https://esbuild.github.io/api/#build-api) documentation.

0 commit comments

Comments
 (0)