@hybridly/vite 0.3.1 → 0.4.0

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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { ResolvedHybridlyConfig, HybridlyConfig } from '@hybridly/config';
2
1
  import { Plugin } from 'vite';
2
+ import { DynamicConfiguration } from '@hybridly/core';
3
3
  import autoimport from 'unplugin-auto-import/vite';
4
4
  import icons from 'unplugin-icons/vite';
5
5
  import laravel from 'laravel-vite-plugin';
@@ -44,10 +44,10 @@ declare function HybridlyResolver(linkName?: string): {
44
44
  };
45
45
 
46
46
  interface ViteOptions {
47
+ /** Path to the PHP executable. */
48
+ php?: string;
47
49
  /** Options for the layout plugin. */
48
50
  layout?: LayoutOptions;
49
- /** Options for the router plugin. */
50
- router?: RouterOptions;
51
51
  /** Options for `@vitejs/plugin-vue`. */
52
52
  vue?: false | VueOptions;
53
53
  /** Options for `laravel-vite-plugin`. Set to `false` to disable. */
@@ -73,19 +73,9 @@ interface LayoutOptions {
73
73
  /** Name of the layout used when no argument is provided to `layout`. */
74
74
  defaultLayoutName?: string;
75
75
  }
76
- interface RouterOptions {
77
- /** Path to the PHP executable. */
78
- php?: string;
79
- /** Path to definition file. */
80
- dts?: false | string;
81
- /** File patterns to watch. */
82
- watch?: RegExp[];
83
- }
84
-
85
- declare const _default$1: (options: ViteOptions, config: ResolvedHybridlyConfig) => Plugin;
86
76
 
87
- declare const _default: (options: ViteOptions, config: HybridlyConfig) => Plugin;
77
+ declare const _default: (options: ViteOptions, config: DynamicConfiguration) => Plugin;
88
78
 
89
79
  declare function plugin(options?: ViteOptions): Promise<any[]>;
90
80
 
91
- export { HybridlyImports, HybridlyResolver, ViteOptions as Options, plugin as default, _default$1 as layout, _default as router };
81
+ export { HybridlyImports, HybridlyResolver, ViteOptions as Options, plugin as default, _default as layout };