File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import path from "node:path"
2+ import { fileURLToPath } from "node:url"
13import { defineConfig } from "vite" ;
2- import { imagePlugin } from "../../../packages/ image/src /vite" ;
3- import { solidStart } from "../../../packages/start/src/config" ;
4+ import { imagePlugin } from "@solidjs/ image/vite" ;
5+ import { solidStart } from "../../../packages/start/src/config/index.js " ;
46import { nitroV2Plugin } from "../../../packages/start-nitro-v2-vite-plugin/src" ;
57
8+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
9+
610export default defineConfig ( {
711 plugins : [
812 imagePlugin ( {
@@ -49,4 +53,9 @@ export default defineConfig({
4953 solidStart ( ) ,
5054 nitroV2Plugin ( ) ,
5155 ] ,
56+ // resolve: {
57+ // alias: {
58+ // "@solidjs/image": path.resolve(__dirname, "../../../packages/image/dist/index.js"),
59+ // }
60+ // }
5261} ) ;
Original file line number Diff line number Diff line change 1- import { createEffect , createSignal , onCleanup } from "solid-js" ;
1+ import { createSignal } from "solid-js" ;
22import { isServer } from "solid-js/web" ;
33
44export interface LazyRender < T extends HTMLElement > {
Original file line number Diff line number Diff line change 11/**
22 * List of supported image types
33 *
4- * Based on https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Formats/Image_types
4+ * @see https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Formats/Image_types
55 */
66export type StartImageMIME =
77 | "image/avif"
You can’t perform that action at this time.
0 commit comments