vike-solid 0.1.2 → 0.1.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/README.md CHANGED
@@ -3,16 +3,9 @@
3
3
 
4
4
  # `vike-solid`
5
5
 
6
- Vike-solid is a demo showcasing a SolidJS framework built using [vite-plugin-ssr](https://vite-plugin-ssr.com/).
6
+ SolidJS integration for [Vike](https://github.com/brillout/vite-plugin-ssr/issues/736).
7
7
 
8
- It uses VPS's [V1 design](https://github.com/brillout/vite-plugin-ssr/issues/578) which is in beta.
8
+ > [!NOTE]
9
+ > For integrations with React and Vue, see the other [`vike-*` packages](https://vite-plugin-ssr.com/vike-packages).
9
10
 
10
- > **NOTE:** For VPS/Vike integrations with other UI frameworks (e.g. React), see
11
- > [`vike-*` packages](https://vite-plugin-ssr.com/vike-packages).
12
-
13
- To run the example:
14
-
15
- - Clone the repo: `git clone git@github.com:magne4000/vike-solid`
16
- - Install dependencies: `pnpm install`
17
- - Build vike-solid: `pnpm run build`
18
- - Run the example: `cd examples/basic/ && pnpm run dev`
11
+ See [examples/](https://github.com/magne4000/vike-solid/tree/main/examples).
@@ -1,5 +1,5 @@
1
1
  import { build } from 'vite';
2
- import { c as config } from './vite.config-df5876e8.js';
2
+ import { c as config } from './vite.config-0442c29d.js';
3
3
  import 'vite-plugin-solid';
4
4
  import 'vite-plugin-ssr/plugin';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { createServer } from 'vite';
2
- import { c as config } from './vite.config-df5876e8.js';
2
+ import { c as config } from './vite.config-0442c29d.js';
3
3
  import 'vite-plugin-solid';
4
4
  import 'vite-plugin-ssr/plugin';
5
5
 
package/dist/index.js CHANGED
@@ -3,13 +3,13 @@ const cmd = parseCliArgs();
3
3
  cli();
4
4
  async function cli() {
5
5
  if (cmd === "dev") {
6
- await import('./dev-9d41296a.js');
6
+ await import('./dev-66f2fdf4.js');
7
7
  }
8
8
  if (cmd === "build") {
9
- await import('./build-53e5ed9a.js');
9
+ await import('./build-15504eb6.js');
10
10
  }
11
11
  if (cmd === "preview") {
12
- await import('./preview-fc3ed656.js');
12
+ await import('./preview-43d6feda.js');
13
13
  }
14
14
  }
15
15
  function parseCliArgs() {
@@ -1,5 +1,5 @@
1
1
  import { preview } from 'vite';
2
- import { c as config } from './vite.config-df5876e8.js';
2
+ import { c as config } from './vite.config-0442c29d.js';
3
3
  import 'vite-plugin-solid';
4
4
  import 'vite-plugin-ssr/plugin';
5
5
 
@@ -8,4 +8,4 @@ interface Options {
8
8
  }
9
9
  declare function export_default(options?: Options): Plugin[];
10
10
 
11
- export { Options, export_default as default };
11
+ export { type Options, export_default as default };
@@ -21,9 +21,7 @@ function vitePluginVikeSolid (options = {}) {
21
21
  solid: {
22
22
  hydratable: true
23
23
  }
24
- }, options.solid ?? {})), ssr(mergeConfig({
25
- disableAutoFullBuild: true
26
- }, options.vps ?? {})), overrideConfig()];
24
+ }, options.solid ?? {})), ssr(options.vps ?? {}), overrideConfig()];
27
25
  }
28
26
 
29
27
  export { vitePluginVikeSolid as default };
@@ -21,9 +21,7 @@ function vpvs (options = {}) {
21
21
  solid: {
22
22
  hydratable: true
23
23
  }
24
- }, options.solid ?? {})), ssr(mergeConfig({
25
- disableAutoFullBuild: true
26
- }, options.vps ?? {})), overrideConfig()];
24
+ }, options.solid ?? {})), ssr(options.vps ?? {}), overrideConfig()];
27
25
  }
28
26
 
29
27
  const root = process.cwd();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike-solid",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dist/+config.js",
@@ -10,27 +10,28 @@
10
10
  "./renderer/onRenderClient": "./dist/+onRenderClient.js"
11
11
  },
12
12
  "dependencies": {
13
- "vite": "^4.4.9",
14
13
  "vite-plugin-solid": "^2.7.0"
15
14
  },
16
15
  "peerDependencies": {
17
- "solid-js": "^1.7.11",
16
+ "solid-js": "^1.7.12",
17
+ "vite": "^4.4.9",
18
18
  "vite-plugin-ssr": "^0.4.141"
19
19
  },
20
20
  "devDependencies": {
21
- "@babel/core": "^7.22.10",
22
- "@babel/preset-env": "^7.22.10",
23
- "@babel/preset-typescript": "^7.22.5",
21
+ "@babel/core": "^7.22.20",
22
+ "@babel/preset-env": "^7.22.20",
23
+ "@babel/preset-typescript": "^7.22.15",
24
24
  "@rollup/plugin-babel": "^6.0.3",
25
- "@rollup/plugin-node-resolve": "^15.1.0",
25
+ "@rollup/plugin-node-resolve": "^15.2.1",
26
26
  "@types/node": "^18.17.4",
27
- "babel-preset-solid": "^1.7.7",
28
- "bumpp": "^9.1.1",
29
- "rollup": "^3.28.0",
30
- "rollup-plugin-dts": "^5.3.1",
31
- "solid-js": "^1.7.11",
32
- "tslib": "^2.6.1",
33
- "typescript": "^5.1.6",
27
+ "babel-preset-solid": "^1.7.12",
28
+ "bumpp": "^9.2.0",
29
+ "rollup": "^3.29.2",
30
+ "rollup-plugin-dts": "^6.0.2",
31
+ "solid-js": "^1.7.12",
32
+ "tslib": "^2.6.2",
33
+ "typescript": "^5.2.2",
34
+ "vite": "^4.4.9",
34
35
  "vite-plugin-ssr": "^0.4.141"
35
36
  },
36
37
  "typesVersions": {