@forsakringskassan/vite-lib-config 5.12.1 → 5.12.2

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.
@@ -11329,6 +11329,15 @@ var defaultPlugins = [
11329
11329
  customMappingPlugin(),
11330
11330
  babelPlugin()
11331
11331
  ];
11332
+ var entries = [];
11333
+ if (process.env.CYPRESS) {
11334
+ entries = [
11335
+ "packages/**/src/**/*.{ts,vue}",
11336
+ "src/**/*.{ts,vue}",
11337
+ "cypress/**/*.{ts,vue}",
11338
+ "!**/*.spec.ts"
11339
+ ];
11340
+ }
11332
11341
  var defaultConfig = {
11333
11342
  fk: {},
11334
11343
  plugins: defaultPlugins,
@@ -11351,6 +11360,9 @@ var defaultConfig = {
11351
11360
  external: Array.from(external)
11352
11361
  }
11353
11362
  },
11363
+ optimizeDeps: {
11364
+ entries
11365
+ },
11354
11366
  resolve: {
11355
11367
  alias: {
11356
11368
  /* enable vue runtime template compiler needed by both jest/vitest
@@ -11323,6 +11323,15 @@ var defaultPlugins = [
11323
11323
  customMappingPlugin(),
11324
11324
  babelPlugin()
11325
11325
  ];
11326
+ var entries = [];
11327
+ if (process.env.CYPRESS) {
11328
+ entries = [
11329
+ "packages/**/src/**/*.{ts,vue}",
11330
+ "src/**/*.{ts,vue}",
11331
+ "cypress/**/*.{ts,vue}",
11332
+ "!**/*.spec.ts"
11333
+ ];
11334
+ }
11326
11335
  var defaultConfig = {
11327
11336
  fk: {},
11328
11337
  plugins: defaultPlugins,
@@ -11345,6 +11354,9 @@ var defaultConfig = {
11345
11354
  external: Array.from(external)
11346
11355
  }
11347
11356
  },
11357
+ optimizeDeps: {
11358
+ entries
11359
+ },
11348
11360
  resolve: {
11349
11361
  alias: {
11350
11362
  /* enable vue runtime template compiler needed by both jest/vitest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/vite-lib-config",
3
- "version": "5.12.1",
3
+ "version": "5.12.2",
4
4
  "description": "Försäkringskassan toolchain to build libraries with Vite",
5
5
  "keywords": [
6
6
  "vite"