Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
8 changes: 8 additions & 0 deletions frameworks/react-cra/add-ons/zephyr/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "Zephyr Cloud",
"description": "The fastest way to go from idea to production.",
"phase": "add-on",
"modes": ["file-router", "code-router"],
"link": "https://zephyr-cloud.io/",
"type": "add-on"
}
5 changes: 5 additions & 0 deletions frameworks/react-cra/add-ons/zephyr/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"vite-plugin-zephyr": "latest"
}
}
12 changes: 12 additions & 0 deletions frameworks/react-cra/add-ons/zephyr/small-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions frameworks/react-cra/project/base/vite.config.ts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ import viteReact from "@vitejs/plugin-react";<% if (tailwind) { %>
import tailwindcss from "@tailwindcss/vite";
<% } %><%if (fileRouter) { %>
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";<% } %><% if (addOnEnabled['module-federation']) { %>
import { federation } from "@module-federation/vite";<% } %>
import { federation } from "@module-federation/vite";<% } %><% if (addOnEnabled.zephyr) { %>
import { withZephyr } from 'vite-plugin-zephyr';<% } %>
import { resolve } from "node:path";<% if (addOnEnabled['module-federation']) { %>
import federationConfig from "./module-federation.config.js";
<% } %>

// https://vitejs.dev/config/
export default defineConfig({
plugins: [<% if(fileRouter) { %>TanStackRouterVite({ autoCodeSplitting: true }), <% } %>viteReact()<% if (tailwind) { %>, tailwindcss()<% } %><% if (addOnEnabled['module-federation']) { %>, federation(federationConfig)<% } %>],
plugins: [<% if(fileRouter) { %>TanStackRouterVite({ autoCodeSplitting: true }), <% } %>viteReact()<% if (tailwind) { %>, tailwindcss()<% } %><% if (addOnEnabled['module-federation']) { %>, federation(federationConfig)<% } %><% if (addOnEnabled.zephyr) { %>, withZephyr(<% if (addOnEnabled['module-federation']) { %>{ mfConfig: federationConfig }<% } %>)<% } %>],
test: {
globals: true,
environment: "jsdom",
Expand Down