@hono/vite-ssg 0.3.0 → 0.3.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,55 @@
1
+ # @hono/vite-ssg
2
+
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#325](https://github.com/honojs/vite-plugins/pull/325) [`3cffe86130d30909ad7799cc8adb157c47a0ae3a`](https://github.com/honojs/vite-plugins/commit/3cffe86130d30909ad7799cc8adb157c47a0ae3a) Thanks [@3w36zj6](https://github.com/3w36zj6)! - include Node.js builtin modules explicitly
8
+
9
+ ## 0.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#318](https://github.com/honojs/vite-plugins/pull/318) [`9bc8f280de0922aa461e715d3751294425313c80`](https://github.com/honojs/vite-plugins/commit/9bc8f280de0922aa461e715d3751294425313c80) Thanks [@3w36zj6](https://github.com/3w36zj6)! - respect resolve options when creating server
14
+
15
+ ## 0.3.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#304](https://github.com/honojs/vite-plugins/pull/304) [`1a6b277b6ecc58450113b63f6b3bf2e2e4fce35a`](https://github.com/honojs/vite-plugins/commit/1a6b277b6ecc58450113b63f6b3bf2e2e4fce35a) Thanks [@epelz](https://github.com/epelz)! - add ssg build option to specify extensionMap
20
+
21
+ ## 0.2.1
22
+
23
+ ### Patch Changes
24
+
25
+ - [#299](https://github.com/honojs/vite-plugins/pull/299) [`5ff83b02ab87903af8e3d656df7a37dc4a43384b`](https://github.com/honojs/vite-plugins/commit/5ff83b02ab87903af8e3d656df7a37dc4a43384b) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: set `enforce` as `post`
26
+
27
+ ## 0.2.0
28
+
29
+ ### Minor Changes
30
+
31
+ - [#283](https://github.com/honojs/vite-plugins/pull/283) [`4c28821fbf889deba5e10c7fd7f81f50530431c7`](https://github.com/honojs/vite-plugins/commit/4c28821fbf889deba5e10c7fd7f81f50530431c7) Thanks [@3w36zj6](https://github.com/3w36zj6)! - feat: add support for ssg plugins
32
+
33
+ ## 0.1.2
34
+
35
+ ### Patch Changes
36
+
37
+ - [#239](https://github.com/honojs/vite-plugins/pull/239) [`b27fca203320e55f74184541d35b4720e9b456c8`](https://github.com/honojs/vite-plugins/commit/b27fca203320e55f74184541d35b4720e9b456c8) Thanks [@ssssota](https://github.com/ssssota)! - Load .env.{mode} to bundle environment variable
38
+
39
+ ## 0.1.1
40
+
41
+ ### Patch Changes
42
+
43
+ - [#209](https://github.com/honojs/vite-plugins/pull/209) [`9a39a51d34e0e6c34212fed15f49aa9248a8b4bc`](https://github.com/honojs/vite-plugins/commit/9a39a51d34e0e6c34212fed15f49aa9248a8b4bc) Thanks [@berlysia](https://github.com/berlysia)! - Preserve the SSR server instance during page rendering
44
+
45
+ ## 0.1.0
46
+
47
+ ### Minor Changes
48
+
49
+ - [#80](https://github.com/honojs/vite-plugins/pull/80) [`b577d9c6bffa3b543a8f0bf94539a61fc139264d`](https://github.com/honojs/vite-plugins/commit/b577d9c6bffa3b543a8f0bf94539a61fc139264d) Thanks [@berlysia](https://github.com/berlysia)! - Simplify the build flow. Just run `toSSG`. Respect Vite's config.
50
+
51
+ ## 0.0.1
52
+
53
+ ### Patch Changes
54
+
55
+ - [#59](https://github.com/honojs/vite-plugins/pull/59) [`92f1e721d4a1e1846c3fdfa121d63fafdaf8f4b3`](https://github.com/honojs/vite-plugins/commit/92f1e721d4a1e1846c3fdfa121d63fafdaf8f4b3) Thanks [@yusukebe](https://github.com/yusukebe)! - Initial release
package/dist/ssg.js CHANGED
@@ -44,6 +44,10 @@ const ssgBuild = (options) => {
44
44
  }
45
45
  }
46
46
  const server = await createServer({
47
+ resolve: {
48
+ ...config.resolve,
49
+ builtins: [...config.resolve.builtins, /^node:/]
50
+ },
47
51
  plugins: [],
48
52
  build: { ssr: true },
49
53
  mode: config.mode
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hono/vite-ssg",
3
3
  "description": "Vite plugin to generate a static site from your Hono application",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.js",
7
7
  "type": "module",
@@ -40,6 +40,7 @@
40
40
  },
41
41
  "homepage": "https://github.com/honojs/vite-plugins",
42
42
  "devDependencies": {
43
+ "@types/node": "^24.10.0",
43
44
  "glob": "^10.3.10",
44
45
  "hono": "^4.9.0",
45
46
  "publint": "^0.1.12",
@@ -54,4 +55,4 @@
54
55
  "engines": {
55
56
  "node": ">=18.14.1"
56
57
  }
57
- }
58
+ }