@devmoods/express-extras 0.49.1 → 0.49.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.
@@ -29,11 +29,19 @@ export function defineViteConfig({ base = '', reactCompiler = false, ssr = false
29
29
  chunkSizeWarningLimit: 750,
30
30
  manifest: true,
31
31
  sourcemap: true,
32
- rollupOptions: {
33
- input: {
34
- index: path.resolve(process.cwd(), 'src/entry-client.tsx'),
32
+ // Set via cli arg --outDir for ssr
33
+ outDir: ssr ? undefined : 'dist/client',
34
+ rollupOptions: ssr
35
+ ? {
36
+ input: {
37
+ index: path.resolve(process.cwd(), 'src/entry-client.tsx'),
38
+ },
39
+ }
40
+ : {
41
+ input: {
42
+ index: path.resolve(__dirname, '_index.html'),
43
+ },
35
44
  },
36
- },
37
45
  },
38
46
  server: !ssr
39
47
  ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devmoods/express-extras",
3
- "version": "0.49.1",
3
+ "version": "0.49.2",
4
4
  "description": "Kubernetes-ready utilities for rapid Node.js application development",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",