Skip to content

Commit 75a2a12

Browse files
committed
move files
1 parent 4163ece commit 75a2a12

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

packages/vite/src/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import { supercharge } from './plugin/plugin.js'
44
export default supercharge
55
export { supercharge }
66

7-
export { HotReloadFile } from './plugin/hotfile.js'
8-
export { PluginConfigContract, DevServerUrl } from './plugin/types.js'
9-
10-
export { resolvePageComponent, InertiaPageNotFoundError } from './inertia-helpers.js'
117
export { Vite, ViteTagAttributes } from './backend/vite.js'
128
export { ViteConfig } from './backend/vite-config.js'
139
export { ViteServiceProvider } from './vite-service-provider.js'
10+
11+
export { resolvePageComponent } from './inertia/inertia-helpers.js'
12+
export { InertiaPageNotFoundError } from './inertia/inertia-page-not-found-error.js'
13+
14+
export { HotReloadFile } from './plugin/hotfile.js'
15+
export { PluginConfigContract, DevServerUrl } from './plugin/types.js'

packages/vite/src/inertia-helpers.ts renamed to packages/vite/src/inertia/inertia-helpers.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11

2-
export class InertiaPageNotFoundError extends Error {
3-
/**
4-
* Create a new instance.
5-
*/
6-
constructor (path: string) {
7-
super(`Inertia page not found: ${path}`)
8-
9-
this.name = 'PageNotFoundError'
10-
InertiaPageNotFoundError.captureStackTrace(this, this.constructor)
11-
}
12-
}
2+
import { InertiaPageNotFoundError } from './inertia-page-not-found-error.js'
133

144
/**
155
* Resolves the inertia page component for the given `path` from the available `pages`.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
export class InertiaPageNotFoundError extends Error {
3+
/**
4+
* Create a new instance.
5+
*/
6+
constructor (path: string) {
7+
super(`Inertia page not found: ${path}`)
8+
9+
this.name = 'InertiaPageNotFoundError'
10+
InertiaPageNotFoundError.captureStackTrace(this, this.constructor)
11+
}
12+
}

0 commit comments

Comments
 (0)