@soybeanjs/hono-ssr 0.0.1 → 0.0.3

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.
Files changed (2) hide show
  1. package/dist/vite.js +8 -0
  2. package/package.json +6 -4
package/dist/vite.js CHANGED
@@ -120,6 +120,14 @@ function FileRoutesPlugin(options) {
120
120
  let config;
121
121
  return {
122
122
  name: "hono-ssr:file-routes",
123
+ config(userConfig) {
124
+ const existing = userConfig.ssr?.noExternal;
125
+ if (existing === true) return;
126
+ const packageName = "@soybeanjs/hono-ssr";
127
+ const currentList = Array.isArray(existing) ? existing : existing ? [existing] : [];
128
+ if (currentList.includes(packageName)) return;
129
+ return { ssr: { noExternal: [...currentList, packageName] } };
130
+ },
123
131
  configResolved(resolvedConfig) {
124
132
  config = resolvedConfig;
125
133
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soybeanjs/hono-ssr",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "A Vite SSR plugin for Hono framework, providing file-based routing, client build, SSR manifest management, and multi-platform deployment adaptation.",
5
5
  "homepage": "https://github.com/soybeanjs/hono-ssr",
6
6
  "bugs": {
@@ -45,14 +45,16 @@
45
45
  "publishConfig": {
46
46
  "registry": "https://registry.npmjs.org/"
47
47
  },
48
- "devDependencies": {
48
+ "dependencies": {
49
49
  "@hono/vite-build": "^1.11.1",
50
50
  "@hono/vite-dev-server": "^0.26.0",
51
+ "hono": "^4.12.24",
52
+ "tinyglobby": "^0.2.17"
53
+ },
54
+ "devDependencies": {
51
55
  "@soybeanjs/cli": "^1.7.2",
52
56
  "@soybeanjs/oxc-config": "^0.2.3",
53
57
  "@types/node": "^25.9.2",
54
- "hono": "^4.12.24",
55
- "tinyglobby": "^0.2.17",
56
58
  "typescript": "^6.0.3",
57
59
  "vite": "npm:@voidzero-dev/vite-plus-core@^0.1.24",
58
60
  "vite-plus": "^0.1.24",