@matthesketh/utopia-vite-plugin 0.4.0 → 0.5.0

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.
package/dist/index.cjs CHANGED
@@ -174,6 +174,10 @@ import ${JSON.stringify(cssImportId)};
174
174
  const templateChanged = didBlockChange(oldDescriptor?.template, newDescriptor.template);
175
175
  const scriptChanged = didBlockChange(oldDescriptor?.script, newDescriptor.script);
176
176
  const styleChanged = didBlockChange(oldDescriptor?.style, newDescriptor.style);
177
+ const testChanged = didBlockChange(oldDescriptor?.test, newDescriptor.test);
178
+ if (testChanged && !templateChanged && !scriptChanged && !styleChanged) {
179
+ return [];
180
+ }
177
181
  if (styleChanged && !templateChanged && !scriptChanged) {
178
182
  let result;
179
183
  try {
package/dist/index.js CHANGED
@@ -139,6 +139,10 @@ import ${JSON.stringify(cssImportId)};
139
139
  const templateChanged = didBlockChange(oldDescriptor?.template, newDescriptor.template);
140
140
  const scriptChanged = didBlockChange(oldDescriptor?.script, newDescriptor.script);
141
141
  const styleChanged = didBlockChange(oldDescriptor?.style, newDescriptor.style);
142
+ const testChanged = didBlockChange(oldDescriptor?.test, newDescriptor.test);
143
+ if (testChanged && !templateChanged && !scriptChanged && !styleChanged) {
144
+ return [];
145
+ }
142
146
  if (styleChanged && !templateChanged && !scriptChanged) {
143
147
  let result;
144
148
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matthesketh/utopia-vite-plugin",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Vite plugin for UtopiaJS .utopia files",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  "dist"
40
40
  ],
41
41
  "dependencies": {
42
- "@matthesketh/utopia-compiler": "0.4.0"
42
+ "@matthesketh/utopia-compiler": "0.5.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "vite": "^6.0.0 || ^7.0.0"