-
Notifications
You must be signed in to change notification settings - Fork 1
New vite.config #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New vite.config #86
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new, simplified Vite configuration by removing legacy settings and consolidating plugin usage.
- Removed obsolete plugins and configuration sections (build, define, server, proxy).
- Added new plugins: createIconImportProxy and sparkPlugin within the plugins array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 would love to unify the package name import paths, but can be done in a follow up
vite.config.ts
Outdated
// IMPORTANT NOTE: This file is only used in two situations: local development, and the live preview in Workbench. | ||
// For deployed Sparks, the `server/main.ts` serves the app itself. Ensure consistency between this file and `server/main.ts` | ||
// if you have something that needs to available while deployed. | ||
|
||
import tailwindcss from "@tailwindcss/vite"; | ||
import react from "@vitejs/plugin-react-swc"; | ||
import { defineConfig, PluginOption } from "vite"; | ||
|
||
import { createLogToFileLogger } from "@github/spark/logToFileLogger"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be great to change to more usual kebab case fro import paths
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one actually is a left over but will do fot he rest of the exports 👍
import { runtimeTelemetryPlugin } from "@github/spark/telemetryPlugin"; | ||
import sparkAgent from "@github/spark/agent-plugin"; | ||
import { tagSourcePlugin, designerHost } from "@github/spark/designerPlugin"; | ||
import sparkPlugin from "@github/spark/spark-vite-plugin"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would prefer import path to be @github/spark/vite
import { runtimeTelemetryPlugin } from "@github/spark/telemetryPlugin"; | ||
import sparkAgent from "@github/spark/agent-plugin"; | ||
import { tagSourcePlugin, designerHost } from "@github/spark/designerPlugin"; | ||
import sparkPlugin from "@github/spark/spark-vite-plugin"; | ||
import createIconImportProxy from "@github/spark/vitePhosphorIconProxyPlugin"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we move this to the spark vite plugin as well?
No description provided.