@salesforce/webapp-template-base-react-app-experimental 1.61.3 → 1.61.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.61.4](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.61.3...v1.61.4) (2026-03-02)
7
+
8
+ **Note:** Version bump only for package @salesforce/webapp-template-base-react-app-experimental
9
+
6
10
  ## [1.61.3](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.61.2...v1.61.3) (2026-03-02)
7
11
 
8
12
  **Note:** Version bump only for package @salesforce/webapp-template-base-react-app-experimental
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-react-app-experimental",
3
- "version": "1.61.3",
3
+ "version": "1.61.4",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,5 +15,5 @@
15
15
  "test:coverage": "npm run test",
16
16
  "test:e2e": "cd src/force-app/main/default/webapplications/base-react-app && rm -rf node_modules && npm install && npx playwright install chromium && npm run build:e2e && npx playwright test"
17
17
  },
18
- "gitHead": "856cef369bb529c23171b64cec3feff2b328ff76"
18
+ "gitHead": "e3db76c56a114c5ef34c8f0fd2ae801104955877"
19
19
  }
@@ -1,4 +1,3 @@
1
- import type { PluginOption } from 'vite';
2
1
  import { defineConfig } from 'vite';
3
2
  import react from '@vitejs/plugin-react';
4
3
  import path from 'path';
@@ -11,6 +10,7 @@ export default defineConfig(({ mode }) => {
11
10
  return {
12
11
  // Ensure root base for e2e/static serve; plugin may override when deployed under a path
13
12
  base: '/',
13
+ // Type assertion avoids Plugin type mismatch when dist has its own node_modules (vite/rollup)
14
14
  plugins: [
15
15
  tailwindcss(),
16
16
  react(),
@@ -27,7 +27,7 @@ export default defineConfig(({ mode }) => {
27
27
  // Fail build if codegen errors
28
28
  throwOnBuild: true,
29
29
  }),
30
- ] as PluginOption[],
30
+ ] as import('vite').PluginOption[],
31
31
 
32
32
  // Build configuration for MPA
33
33
  build: {
@@ -1,2 +0,0 @@
1
- declare const _default: import("vite").UserConfigFnObject;
2
- export default _default;
@@ -1,93 +0,0 @@
1
- import { defineConfig } from 'vite';
2
- import react from '@vitejs/plugin-react';
3
- import path from 'path';
4
- import { resolve } from 'path';
5
- import tailwindcss from '@tailwindcss/vite';
6
- import salesforce from '@salesforce/vite-plugin-webapp-experimental';
7
- import codegen from 'vite-plugin-graphql-codegen';
8
- export default defineConfig(function (_a) {
9
- var mode = _a.mode;
10
- return {
11
- // Ensure root base for e2e/static serve; plugin may override when deployed under a path
12
- base: '/',
13
- plugins: [
14
- tailwindcss(),
15
- react(),
16
- salesforce(),
17
- codegen({
18
- // Path to the codegen config file
19
- configFilePathOverride: resolve(__dirname, 'codegen.yml'),
20
- // Run codegen on dev server start
21
- runOnStart: true,
22
- // Don't run codegen on build for now
23
- runOnBuild: false,
24
- // Enable file watcher during development
25
- enableWatcher: true,
26
- // Fail build if codegen errors
27
- throwOnBuild: true,
28
- }),
29
- ],
30
- // Build configuration for MPA
31
- build: {
32
- outDir: resolve(__dirname, 'dist'),
33
- assetsDir: 'assets',
34
- sourcemap: false,
35
- },
36
- // Resolve aliases (shared between build and test)
37
- resolve: {
38
- dedupe: ['react', 'react-dom'],
39
- alias: {
40
- '@': path.resolve(__dirname, './src'),
41
- '@api': path.resolve(__dirname, './src/api'),
42
- '@components': path.resolve(__dirname, './src/components'),
43
- '@utils': path.resolve(__dirname, './src/utils'),
44
- '@styles': path.resolve(__dirname, './src/styles'),
45
- '@assets': path.resolve(__dirname, './src/assets'),
46
- },
47
- },
48
- // Vitest configuration
49
- test: {
50
- // Override root for tests (build uses src/pages as root)
51
- root: resolve(__dirname),
52
- // Use jsdom environment for React component testing
53
- environment: 'jsdom',
54
- // Setup files to run before each test
55
- setupFiles: ['./src/test/setup.ts'],
56
- // Global test patterns
57
- include: [
58
- 'src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
59
- 'src/**/__tests__/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
60
- ],
61
- // Coverage configuration
62
- coverage: {
63
- provider: 'v8',
64
- reporter: ['text', 'html', 'clover', 'json'],
65
- exclude: [
66
- 'node_modules/',
67
- 'src/test/',
68
- 'src/**/*.d.ts',
69
- 'src/main.tsx',
70
- 'src/vite-env.d.ts',
71
- 'src/components/**/index.ts',
72
- '**/*.config.ts',
73
- 'build/',
74
- 'dist/',
75
- 'coverage/',
76
- 'eslint.config.js',
77
- ],
78
- thresholds: {
79
- global: {
80
- branches: 85,
81
- functions: 85,
82
- lines: 85,
83
- statements: 85,
84
- },
85
- },
86
- },
87
- // Test timeout
88
- testTimeout: 10000,
89
- // Globals for easier testing
90
- globals: true,
91
- },
92
- };
93
- });