@vanilla-extract/vite-plugin 4.0.8 → 4.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81,7 +81,8 @@ function vanillaExtractPlugin({
81
81
  packageName = integration.getPackageInfo(config.root).name;
82
82
  },
83
83
  async buildStart() {
84
- if (mode !== 'transform') {
84
+ // Ensure we re-use the compiler instance between builds, e.g. in watch mode
85
+ if (mode !== 'transform' && !compiler) {
85
86
  var _configFile$config$pl;
86
87
  const {
87
88
  loadConfigFromFile
@@ -81,7 +81,8 @@ function vanillaExtractPlugin({
81
81
  packageName = integration.getPackageInfo(config.root).name;
82
82
  },
83
83
  async buildStart() {
84
- if (mode !== 'transform') {
84
+ // Ensure we re-use the compiler instance between builds, e.g. in watch mode
85
+ if (mode !== 'transform' && !compiler) {
85
86
  var _configFile$config$pl;
86
87
  const {
87
88
  loadConfigFromFile
@@ -73,7 +73,8 @@ function vanillaExtractPlugin({
73
73
  packageName = getPackageInfo(config.root).name;
74
74
  },
75
75
  async buildStart() {
76
- if (mode !== 'transform') {
76
+ // Ensure we re-use the compiler instance between builds, e.g. in watch mode
77
+ if (mode !== 'transform' && !compiler) {
77
78
  var _configFile$config$pl;
78
79
  const {
79
80
  loadConfigFromFile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanilla-extract/vite-plugin",
3
- "version": "4.0.8",
3
+ "version": "4.0.9",
4
4
  "description": "Zero-runtime Stylesheets-in-TypeScript",
5
5
  "main": "dist/vanilla-extract-vite-plugin.cjs.js",
6
6
  "module": "dist/vanilla-extract-vite-plugin.esm.js",