Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWangJustToDo committed Nov 8, 2024
1 parent 27e56c1 commit a278dcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
2 changes: 2 additions & 0 deletions ui/remix-example/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import { defineConfig } from "vite";
import react from "@my-react/react-vite";
import tsconfigPaths from "vite-tsconfig-paths";

// !build will fail when using monorepo symlinks, npm install works fine, so build always fails in this case
export default defineConfig({
plugins: [
react({ remix: true }),
remix({
future: {
// v3_singleFetch: true,
v3_fetcherPersist: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
Expand Down
19 changes: 2 additions & 17 deletions ui/vite-ssr-example/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import react from "@my-react/react-vite";
// import react from '@vitejs/plugin-react';
import { defineConfig } from "vite";

// !SEE https://github.com/vitejs/vite/issues/12738
// !build will fail when using monorepo symlinks, npm install works fine, so build always fails in this case
// https://vitejs.dev/config/
export default defineConfig({
ssr: {
Expand Down Expand Up @@ -33,22 +35,5 @@ export default defineConfig({
"framer-motion",
],
},
// !SEE https://github.com/vitejs/vite/issues/12738
// !build will fail when using monorepo symlinks, npm install works fine, so build always fails in this case
// build: {
// commonjsOptions: {
// include: [
// "@my-react/react",
// "@my-react/react-dom",
// "@my-react/react-dom/server",
// "@my-react/react-dom/client",
// "@my-react/react/jsx-runtime",
// "@my-react/react/jsx-dev-runtime",
// "react-router",
// "react-router-dom",
// "react-router-dom/server",
// ],
// },
// },
plugins: [react()],
});

0 comments on commit a278dcd

Please sign in to comment.