- Optimizes the SUID imports:
// Input import { Wifi } from "@suid/material-icons"; import { Button } from "@suid/material"; // Output import Wifi from "@suid/material-icons/Wifi"; import Button from "@suid/material/Button";
- Sets the vite config required by
solid-start/vite
andvite-plugin-solid
.
npm install @suid/vite-plugin
// vite.config.ts
import suidPlugin from "@suid/vite-plugin";
import { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
export default defineConfig({
plugins: [suidPlugin(), solidPlugin()],
});
Distributed under the MIT License. See LICENSE for more information.