Merge pull request #243 from element-hq/renovate/major-vite
Update vite (major)
This commit is contained in:
@@ -23,9 +23,9 @@
|
|||||||
"react": "19.2.6",
|
"react": "19.2.6",
|
||||||
"rollup-plugin-external-globals": "^0.13.0",
|
"rollup-plugin-external-globals": "^0.13.0",
|
||||||
"typescript": "^6.0.0",
|
"typescript": "^6.0.0",
|
||||||
"vite": "^7.3.2",
|
"vite": "^8.0.0",
|
||||||
"vite-plugin-node-polyfills": "^0.28.0",
|
"vite-plugin-node-polyfills": "^0.28.0",
|
||||||
"vite-plugin-svgr": "^4.3.0"
|
"vite-plugin-svgr": "^5.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@radix-ui/react-dialog": "^1.1.6",
|
"@radix-ui/react-dialog": "^1.1.6",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ Please see LICENSE files in the repository root for full details.
|
|||||||
|
|
||||||
import { dirname, resolve } from "node:path";
|
import { dirname, resolve } from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig, esmExternalRequirePlugin } from "vite";
|
||||||
import react from "@vitejs/plugin-react";
|
import react from "@vitejs/plugin-react";
|
||||||
import { nodePolyfills } from "vite-plugin-node-polyfills";
|
import { nodePolyfills } from "vite-plugin-node-polyfills";
|
||||||
import externalGlobals from "rollup-plugin-external-globals";
|
import externalGlobals from "rollup-plugin-external-globals";
|
||||||
@@ -27,8 +27,18 @@ export default defineConfig({
|
|||||||
outDir: "lib",
|
outDir: "lib",
|
||||||
target: "esnext",
|
target: "esnext",
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
rollupOptions: {
|
rolldownOptions: {
|
||||||
external: ["react"],
|
plugins: [
|
||||||
|
esmExternalRequirePlugin({
|
||||||
|
external: ["react"],
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
output: {
|
||||||
|
globals: {
|
||||||
|
// Reuse React from the host app
|
||||||
|
react: "window.React",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
@@ -46,6 +56,7 @@ export default defineConfig({
|
|||||||
define: {
|
define: {
|
||||||
// Use production mode for the build as it is tested against production builds of Element Web,
|
// Use production mode for the build as it is tested against production builds of Element Web,
|
||||||
// this is required for React JSX versions to be compatible.
|
// this is required for React JSX versions to be compatible.
|
||||||
process: { env: { NODE_ENV: "production" } },
|
"process.env.NODE_ENV": "'production'",
|
||||||
|
"process": { env: { NODE_ENV: "production" } },
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
"react-dom": "19.2.6",
|
"react-dom": "19.2.6",
|
||||||
"rollup-plugin-external-globals": "^0.13.0",
|
"rollup-plugin-external-globals": "^0.13.0",
|
||||||
"typescript": "^6.0.0",
|
"typescript": "^6.0.0",
|
||||||
"vite": "^7.3.2",
|
"vite": "^8.0.0",
|
||||||
"vite-plugin-node-polyfills": "^0.28.0"
|
"vite-plugin-node-polyfills": "^0.28.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ Please see LICENSE files in the repository root for full details.
|
|||||||
|
|
||||||
import { dirname, resolve } from "node:path";
|
import { dirname, resolve } from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig, esmExternalRequirePlugin } from "vite";
|
||||||
import react from "@vitejs/plugin-react";
|
import react from "@vitejs/plugin-react";
|
||||||
import { nodePolyfills } from "vite-plugin-node-polyfills";
|
import { nodePolyfills } from "vite-plugin-node-polyfills";
|
||||||
import externalGlobals from "rollup-plugin-external-globals";
|
import externalGlobals from "rollup-plugin-external-globals";
|
||||||
@@ -25,8 +25,18 @@ export default defineConfig({
|
|||||||
outDir: "lib",
|
outDir: "lib",
|
||||||
target: "esnext",
|
target: "esnext",
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
rollupOptions: {
|
rolldownOptions: {
|
||||||
external: ["react"],
|
plugins: [
|
||||||
|
esmExternalRequirePlugin({
|
||||||
|
external: ["react"],
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
output: {
|
||||||
|
globals: {
|
||||||
|
// Reuse React from the host app
|
||||||
|
react: "window.React",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
minify: false,
|
minify: false,
|
||||||
},
|
},
|
||||||
@@ -43,6 +53,7 @@ export default defineConfig({
|
|||||||
define: {
|
define: {
|
||||||
// Use production mode for the build as it is tested against production builds of Element Web,
|
// Use production mode for the build as it is tested against production builds of Element Web,
|
||||||
// this is required for React JSX versions to be compatible.
|
// this is required for React JSX versions to be compatible.
|
||||||
process: { env: { NODE_ENV: "production" } },
|
"process.env.NODE_ENV": "'production'",
|
||||||
|
"process": { env: { NODE_ENV: "production" } },
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"react": "19.2.6",
|
"react": "19.2.6",
|
||||||
"rollup-plugin-external-globals": "^0.13.0",
|
"rollup-plugin-external-globals": "^0.13.0",
|
||||||
"typescript": "^6.0.0",
|
"typescript": "^6.0.0",
|
||||||
"vite": "^7.3.2",
|
"vite": "^8.0.0",
|
||||||
"vite-plugin-node-polyfills": "^0.28.0"
|
"vite-plugin-node-polyfills": "^0.28.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ Please see LICENSE files in the repository root for full details.
|
|||||||
|
|
||||||
import { dirname, resolve } from "node:path";
|
import { dirname, resolve } from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig, esmExternalRequirePlugin } from "vite";
|
||||||
import react from "@vitejs/plugin-react";
|
import react from "@vitejs/plugin-react";
|
||||||
import { nodePolyfills } from "vite-plugin-node-polyfills";
|
import { nodePolyfills } from "vite-plugin-node-polyfills";
|
||||||
import externalGlobals from "rollup-plugin-external-globals";
|
import externalGlobals from "rollup-plugin-external-globals";
|
||||||
@@ -26,8 +26,18 @@ export default defineConfig({
|
|||||||
outDir: "lib",
|
outDir: "lib",
|
||||||
target: "esnext",
|
target: "esnext",
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
rollupOptions: {
|
rolldownOptions: {
|
||||||
external: ["react"],
|
plugins: [
|
||||||
|
esmExternalRequirePlugin({
|
||||||
|
external: ["react"],
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
output: {
|
||||||
|
globals: {
|
||||||
|
// Reuse React from the host app
|
||||||
|
react: "window.React",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
@@ -44,6 +54,7 @@ export default defineConfig({
|
|||||||
define: {
|
define: {
|
||||||
// Use production mode for the build as it is tested against production builds of Element Web,
|
// Use production mode for the build as it is tested against production builds of Element Web,
|
||||||
// this is required for React JSX versions to be compatible.
|
// this is required for React JSX versions to be compatible.
|
||||||
process: { env: { NODE_ENV: "production" } },
|
"process.env.NODE_ENV": "'production'",
|
||||||
|
"process": { env: { NODE_ENV: "production" } },
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -16,9 +16,9 @@
|
|||||||
"@types/node": "^22.10.7",
|
"@types/node": "^22.10.7",
|
||||||
"@vitest/coverage-v8": "^4.0.0",
|
"@vitest/coverage-v8": "^4.0.0",
|
||||||
"typescript": "^6.0.0",
|
"typescript": "^6.0.0",
|
||||||
"vite": "^7.3.2",
|
"vite": "^8.0.0",
|
||||||
"vitest": "^4.0.0",
|
"vitest": "^4.0.0",
|
||||||
"vitest-sonar-reporter": "^2.0.0"
|
"vitest-sonar-reporter": "^3.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"zod": "^4.0.0"
|
"zod": "^4.0.0"
|
||||||
|
|||||||
@@ -23,13 +23,13 @@
|
|||||||
"@vitest/browser-playwright": "^4.0.0",
|
"@vitest/browser-playwright": "^4.0.0",
|
||||||
"@vitest/coverage-v8": "^4.0.0",
|
"@vitest/coverage-v8": "^4.0.0",
|
||||||
"react": "^19",
|
"react": "^19",
|
||||||
"rollup-plugin-external-globals": "^0.13.0",
|
|
||||||
"typescript": "^6.0.0",
|
"typescript": "^6.0.0",
|
||||||
"vite": "^7.1.11",
|
"rollup-plugin-external-globals": "^0.13.0",
|
||||||
|
"vite": "^8.0.0",
|
||||||
"vite-plugin-node-polyfills": "^0.28.0",
|
"vite-plugin-node-polyfills": "^0.28.0",
|
||||||
"vite-plugin-svgr": "^4.3.0",
|
"vite-plugin-svgr": "^5.0.0",
|
||||||
"vitest": "^4.0.0",
|
"vitest": "^4.0.0",
|
||||||
"vitest-sonar-reporter": "^2.0.0"
|
"vitest-sonar-reporter": "^3.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vector-im/compound-design-tokens": "^10.0.0",
|
"@vector-im/compound-design-tokens": "^10.0.0",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ Please see LICENSE files in the repository root for full details.
|
|||||||
|
|
||||||
import { dirname, resolve } from "node:path";
|
import { dirname, resolve } from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig, esmExternalRequirePlugin } from "vite";
|
||||||
import react from "@vitejs/plugin-react";
|
import react from "@vitejs/plugin-react";
|
||||||
import { nodePolyfills } from "vite-plugin-node-polyfills";
|
import { nodePolyfills } from "vite-plugin-node-polyfills";
|
||||||
import externalGlobals from "rollup-plugin-external-globals";
|
import externalGlobals from "rollup-plugin-external-globals";
|
||||||
@@ -27,8 +27,18 @@ export default defineConfig({
|
|||||||
outDir: "lib",
|
outDir: "lib",
|
||||||
target: "esnext",
|
target: "esnext",
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
rollupOptions: {
|
rolldownOptions: {
|
||||||
external: ["react"],
|
plugins: [
|
||||||
|
esmExternalRequirePlugin({
|
||||||
|
external: ["react"],
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
output: {
|
||||||
|
globals: {
|
||||||
|
// Reuse React from the host app
|
||||||
|
react: "window.React",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
@@ -46,6 +56,7 @@ export default defineConfig({
|
|||||||
define: {
|
define: {
|
||||||
// Use production mode for the build as it is tested against production builds of Element Web,
|
// Use production mode for the build as it is tested against production builds of Element Web,
|
||||||
// this is required for React JSX versions to be compatible.
|
// this is required for React JSX versions to be compatible.
|
||||||
process: { env: { NODE_ENV: "production" } },
|
"process.env.NODE_ENV": "'production'",
|
||||||
|
"process": { env: { NODE_ENV: "production" } },
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user