Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

honox

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

honox - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

dist/server/components/has-islands.d.ts

4

dist/server/index.d.ts
export { ServerOptions, createApp } from './server.js';
export { HasIslands } from './components.js';
export { HasIslands } from './components/has-islands.js';
export { Script } from './components/script.js';
import 'hono/types';

@@ -7,1 +8,2 @@ import 'hono';

import 'hono/jsx';
import 'vite';
import { createApp } from "./server.js";
import { HasIslands } from "./components.js";
export * from "./components/index.js";
export {
HasIslands,
createApp
};

@@ -6,3 +6,3 @@ import { DevServerOptions } from '@hono/vite-dev-server';

type HonoXOptions = {
type Options = {
islands?: boolean;

@@ -13,5 +13,5 @@ entry?: string;

};
declare const defaultOptions: HonoXOptions;
declare function honox(options?: HonoXOptions): PluginOption[];
declare const defaultOptions: Options;
declare function honox(options?: Options): PluginOption[];
export { honox as default, defaultOptions };

@@ -30,3 +30,10 @@ import path from "path";

{
name: "honox-vite-config"
name: "honox-vite-config",
config: () => {
return {
ssr: {
noExternal: true
}
};
}
},

@@ -33,0 +40,0 @@ ...plugins

{
"name": "honox",
"version": "0.0.2",
"version": "0.0.3",
"main": "dist/index.js",

@@ -55,2 +55,6 @@ "type": "module",

"import": "./dist/vite/index.js"
},
"./vite/client": {
"types": "./dist/vite/client.d.ts",
"import": "./dist/vite/client.js"
}

@@ -77,2 +81,5 @@ },

"./dist/vite"
],
"vite/client": [
"./dist/vite/client"
]

@@ -79,0 +86,0 @@ }

@@ -274,2 +274,23 @@ # HonoX

If you have a manifest file in `dist/.vite/manifest.json`, you can easily write it using `<Script />`.
```tsx
// app/routes/_renderer.tsx
import { jsxRenderer } from 'hono/jsx-renderer'
import { Script } from 'honox/server'
export default jsxRenderer(({ children }) => {
return (
<html lang='en'>
<head>
<meta charset='UTF-8' />
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
<Script src='/app/client.ts' />
</head>
<body>{children}</body>
</html>
)
})
```
### Client Entry File

@@ -558,2 +579,3 @@

```ts
// vite.config.ts
import { defineConfig } from 'vite'

@@ -572,5 +594,6 @@ import honox from 'honox/vite'

// vite.config.ts
import pages from '@hono/vite-cloudflare-pages'
import honox from 'honox/vite'
import client from 'honox/vite/client'
import { defineConfig } from 'vite'
import honox from 'honox/vite'
import pages from '@hono/vite-cloudflare-pages'

@@ -580,14 +603,3 @@ export default defineConfig(({ mode }) => {

return {
build: {
rollupOptions: {
input: ['./app/client.ts'],
output: {
entryFileNames: 'static/client.js',
chunkFileNames: 'static/assets/[name]-[hash].js',
assetFileNames: 'static/assets/[name].[ext]',
},
},
emptyOutDir: false,
copyPublicDir: false,
},
plugins: [client()],
}

@@ -605,3 +617,3 @@ } else {

```txt
vite build && vite build --mode client
vite build --mode client && vite build
```

@@ -608,0 +620,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc