Skip to content

Commit 9d699b5

Browse files
Version Packages (#184)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a5efad1 commit 9d699b5

File tree

3 files changed

+36
-35
lines changed

3 files changed

+36
-35
lines changed

.changeset/curly-bats-allow.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

packages/esbuild-plugin/CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# @vanilla-extract/esbuild-plugin
22

3+
## 1.1.0
4+
5+
### Minor Changes
6+
7+
- [#183](https://github.com/seek-oss/vanilla-extract/pull/183) [`6721228`](https://github.com/seek-oss/vanilla-extract/commit/672122828f763193c9086706ba969caa6c564761) Thanks [@Brendan-csel](https://github.com/Brendan-csel)! - Add `processCss` plugin option to allow further processing of CSS while bundling.
8+
9+
**Example for postcss with autoprefixer:**
10+
11+
```js
12+
const { vanillaExtractPlugin } = require('@vanilla-extract/esbuild-plugin');
13+
const postcss = require('postcss');
14+
const autoprefixer = require('autoprefixer');
15+
16+
async function processCss(css) {
17+
const result = await postcss([autoprefixer]).process(css, {
18+
from: undefined /* suppress source map warning */,
19+
});
20+
21+
return result.css;
22+
}
23+
24+
require('esbuild')
25+
.build({
26+
entryPoints: ['app.ts'],
27+
bundle: true,
28+
plugins: [
29+
vanillaExtractPlugin({
30+
processCss,
31+
}),
32+
],
33+
outfile: 'out.js',
34+
})
35+
.catch(() => process.exit(1));
36+
```
37+
338
## 1.0.0
439

540
### Major Changes

packages/esbuild-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vanilla-extract/esbuild-plugin",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "Zero-runtime Stylesheets-in-TypeScript",
55
"main": "dist/vanilla-extract-esbuild-plugin.cjs.js",
66
"module": "dist/vanilla-extract-esbuild-plugin.esm.js",

0 commit comments

Comments
 (0)