@batijs/cli 0.0.121 → 0.0.122

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.
@@ -2,19 +2,19 @@
2
2
  import { addVitePlugin, loadAsMagicast } from "@batijs/core";
3
3
  async function getViteConfig(props) {
4
4
  const mod = await loadAsMagicast(props);
5
- const options = props.meta.BATI.has("vercel") ? {
5
+ const vikeOptions = props.meta.BATI.has("vercel") ? {
6
6
  prerender: true
7
7
  } : {};
8
+ const reactOptions = props.meta.BATI.has("vercel") && props.meta.BATI.has("hattip") ? { jsxRuntime: "classic" } : {};
8
9
  addVitePlugin(mod, {
9
10
  from: "@vitejs/plugin-react",
10
11
  constructor: "react",
11
- // see https://github.com/vitejs/vite/discussions/5803#discussioncomment-5562200
12
- options: { jsxRuntime: "classic" }
12
+ options: reactOptions
13
13
  });
14
14
  addVitePlugin(mod, {
15
15
  from: "vike/plugin",
16
16
  constructor: "ssr",
17
- options
17
+ options: vikeOptions
18
18
  });
19
19
  return mod.generate().code;
20
20
  }
package/dist/index.js CHANGED
@@ -576,7 +576,7 @@ Please report this issue to https://github.com/magne4000/bati`
576
576
  // package.json
577
577
  var package_default = {
578
578
  name: "@batijs/cli",
579
- version: "0.0.121",
579
+ version: "0.0.122",
580
580
  type: "module",
581
581
  scripts: {
582
582
  "check-types": "tsc --noEmit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.121",
3
+ "version": "0.0.122",
4
4
  "type": "module",
5
5
  "keywords": [],
6
6
  "description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
@@ -19,12 +19,12 @@
19
19
  "tsup": "^8.0.1",
20
20
  "typescript": "^5.3.2",
21
21
  "vite": "^5.0.2",
22
- "@batijs/compile": "0.0.121",
23
- "@batijs/build": "0.0.121"
22
+ "@batijs/build": "0.0.122",
23
+ "@batijs/compile": "0.0.122"
24
24
  },
25
25
  "dependencies": {
26
- "@batijs/core": "0.0.121",
27
- "@batijs/features": "0.0.121"
26
+ "@batijs/core": "0.0.122",
27
+ "@batijs/features": "0.0.122"
28
28
  },
29
29
  "bin": "./dist/index.js",
30
30
  "exports": {