@kiln-js/vite-plugin 0.1.4 → 0.1.5

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
@@ -6,7 +6,7 @@ export interface KilnPlugin {
6
6
  export interface KilnConfig {
7
7
  plugins?: KilnPlugin[];
8
8
  }
9
- export interface KilnOptions extends KilnConfig {
9
+ export interface KilnOptions {
10
10
  pagesDir?: string;
11
11
  apiDir?: string;
12
12
  }
package/dist/index.js CHANGED
@@ -80,8 +80,7 @@ export const api = [
80
80
  function kiln(opts = {}) {
81
81
  const pagesDir = path.resolve(opts.pagesDir ?? "app/pages");
82
82
  const apiDir = path.resolve(opts.apiDir ?? "app/api");
83
- const extra = (opts.plugins ?? []).flatMap((p) => p.vite?.() ?? []);
84
- return [react(), routesPlugin(pagesDir, apiDir), ...extra];
83
+ return [react(), routesPlugin(pagesDir, apiDir)];
85
84
  }
86
85
  export {
87
86
  defineConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiln-js/vite-plugin",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {