@marko/vite 4.1.16 → 4.1.17

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.
Files changed (2) hide show
  1. package/dist/index.mjs +8 -6
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -794,12 +794,14 @@ function markoPlugin(opts = {}) {
794
794
  });
795
795
  }
796
796
  const optimizeDeps = config.optimizeDeps ??= {};
797
- optimizeDeps.entries ??= [
798
- "**/*.marko",
799
- "!**/__snapshots__/**",
800
- `!**/__tests__/**`,
801
- `!**/coverage/**`
802
- ];
797
+ if (!isTest) {
798
+ optimizeDeps.entries ??= [
799
+ "**/*.marko",
800
+ "!**/__snapshots__/**",
801
+ `!**/__tests__/**`,
802
+ `!**/coverage/**`
803
+ ];
804
+ }
803
805
  const domDeps = compiler.getRuntimeEntryFiles("dom", opts.translator);
804
806
  optimizeDeps.include = optimizeDeps.include ? [...optimizeDeps.include, ...domDeps] : domDeps;
805
807
  const optimizeExtensions = optimizeDeps.extensions ??= [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marko/vite",
3
3
  "description": "A Marko plugin for Vite",
4
- "version": "4.1.16",
4
+ "version": "4.1.17",
5
5
  "author": "Dylan Piercey <dpiercey@ebay.com>",
6
6
  "bugs": "https://github.com/marko-js/vite/issues",
7
7
  "dependencies": {