Skip to content

Commit 17aa426

Browse files
committed
chore: move @hiogawa/vite-rsc/plugin to @hiogawa/vite-rsc
1 parent dd95606 commit 17aa426

File tree

12 files changed

+18
-15
lines changed

12 files changed

+18
-15
lines changed

packages/plugin-rsc/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ graph TD
6868
- [`vite.config.ts`](./examples/starter/vite.config.ts)
6969

7070
```js
71-
import rsc from "@hiogawa/vite-rsc/plugin";
71+
import rsc from "@hiogawa/vite-rsc";
7272

7373
export default defineConfig() {
7474
plugins: [
@@ -338,10 +338,10 @@ function __Page(props) {
338338
export { __Page as Page }
339339
```
340340

341-
Underlying transform utility is available from `@hiogawa/vite-rsc/plugin`:
341+
Underlying transform utility is available from `@hiogawa/vite-rsc`:
342342

343343
```tsx
344-
import { transformRscCssExport } from '@hiogawa/vite-rsc/plugin'
344+
import { transformRscCssExport } from '@hiogawa/vite-rsc'
345345
```
346346

347347
### available on `ssr` environment
@@ -381,10 +381,10 @@ import.meta.hot.on('rsc:update', async () => {
381381

382382
## Plugin API
383383

384-
### `@hiogawa/vite-rsc/plugin`
384+
### `@hiogawa/vite-rsc`
385385

386386
```js
387-
import rsc from '@hiogawa/vite-rsc/plugin'
387+
import rsc from '@hiogawa/vite-rsc'
388388
import { defineConfig } from 'vite'
389389

390390
export default defineConfig({

packages/plugin-rsc/examples/basic/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'node:assert'
2-
import rsc, { transformHoistInlineDirective } from '@hiogawa/vite-rsc/plugin'
2+
import rsc, { transformHoistInlineDirective } from '@hiogawa/vite-rsc'
33
import tailwindcss from '@tailwindcss/vite'
44
import react from '@vitejs/plugin-react'
55
import { type Plugin, defineConfig, parseAstAsync } from 'vite'

packages/plugin-rsc/examples/hono/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import rsc from '@hiogawa/vite-rsc/plugin'
1+
import rsc from '@hiogawa/vite-rsc'
22
import react from '@vitejs/plugin-react'
33
import { defineConfig } from 'vite'
44

packages/plugin-rsc/examples/react-router/cf/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { cloudflare } from '@cloudflare/vite-plugin'
2-
import rsc from '@hiogawa/vite-rsc/plugin'
2+
import rsc from '@hiogawa/vite-rsc'
33
import tailwindcss from '@tailwindcss/vite'
44
import react from '@vitejs/plugin-react'
55
import { defineConfig } from 'vite'

packages/plugin-rsc/examples/react-router/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import rsc from '@hiogawa/vite-rsc/plugin'
1+
import rsc from '@hiogawa/vite-rsc'
22
import tailwindcss from '@tailwindcss/vite'
33
import react from '@vitejs/plugin-react'
44
import { defineConfig } from 'vite'

packages/plugin-rsc/examples/ssg/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from 'node:fs'
33
import path from 'node:path'
44
import { Readable } from 'node:stream'
55
import { pathToFileURL } from 'node:url'
6-
import rsc from '@hiogawa/vite-rsc/plugin'
6+
import rsc from '@hiogawa/vite-rsc'
77
import mdx from '@mdx-js/rollup'
88
import react from '@vitejs/plugin-react'
99
import { type Plugin, type ResolvedConfig, defineConfig } from 'vite'

packages/plugin-rsc/examples/starter-cf-single/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { cloudflare } from '@cloudflare/vite-plugin'
2-
import rsc from '@hiogawa/vite-rsc/plugin'
2+
import rsc from '@hiogawa/vite-rsc'
33
import react from '@vitejs/plugin-react'
44
import { defineConfig } from 'vite'
55

packages/plugin-rsc/examples/starter/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import rsc from '@hiogawa/vite-rsc/plugin'
1+
import rsc from '@hiogawa/vite-rsc'
22
import react from '@vitejs/plugin-react'
33
import { defineConfig } from 'vite'
44
// import inspect from "vite-plugin-inspect";

packages/plugin-rsc/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"license": "MIT",
1111
"type": "module",
1212
"exports": {
13+
"./package.json": "./package.json",
1314
"./types": "./types/index.d.ts",
15+
".": "./dist/index.js",
1416
"./*": "./dist/*.js"
1517
},
1618
"files": [

packages/plugin-rsc/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default, type RscPluginOptions } from './plugin'
2+
export { transformHoistInlineDirective } from './transforms'

0 commit comments

Comments
 (0)