File tree Expand file tree Collapse file tree
restricted-guests/element-web Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Please see LICENSE files in the repository root for full details.
77
88import { dirname , resolve } from "node:path" ;
99import { fileURLToPath } from "node:url" ;
10- import { defineConfig } from "vite" ;
10+ import { defineConfig , esmExternalRequirePlugin } from "vite" ;
1111import react from "@vitejs/plugin-react" ;
1212import { nodePolyfills } from "vite-plugin-node-polyfills" ;
1313import externalGlobals from "rollup-plugin-external-globals" ;
@@ -27,8 +27,12 @@ export default defineConfig({
2727 outDir : "lib" ,
2828 target : "esnext" ,
2929 sourcemap : true ,
30- rollupOptions : {
31- external : [ "react" ] ,
30+ rolldownOptions : {
31+ plugins : [
32+ esmExternalRequirePlugin ( {
33+ external : [ "react" ] ,
34+ } ) ,
35+ ] ,
3236 } ,
3337 } ,
3438 plugins : [
Original file line number Diff line number Diff line change 2121 "@nordeck/element-web-widget-toggles-module" : " ^0.1.0" ,
2222 "@types/node" : " ^22.10.7" ,
2323 "@types/react" : " ^19" ,
24- "@vitejs/plugin-react" : " ^5 .0.0" ,
24+ "@vitejs/plugin-react" : " ^6 .0.0" ,
2525 "react" : " 19.2.4" ,
2626 "react-dom" : " 19.2.4" ,
2727 "rollup-plugin-external-globals" : " ^0.13.0" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Please see LICENSE files in the repository root for full details.
77
88import { dirname , resolve } from "node:path" ;
99import { fileURLToPath } from "node:url" ;
10- import { defineConfig } from "vite" ;
10+ import { defineConfig , esmExternalRequirePlugin } from "vite" ;
1111import react from "@vitejs/plugin-react" ;
1212import { nodePolyfills } from "vite-plugin-node-polyfills" ;
1313import externalGlobals from "rollup-plugin-external-globals" ;
@@ -25,8 +25,12 @@ export default defineConfig({
2525 outDir : "lib" ,
2626 target : "esnext" ,
2727 sourcemap : true ,
28- rollupOptions : {
29- external : [ "react" ] ,
28+ rolldownOptions : {
29+ plugins : [
30+ esmExternalRequirePlugin ( {
31+ external : [ "react" ] ,
32+ } ) ,
33+ ] ,
3034 } ,
3135 minify : false ,
3236 } ,
Original file line number Diff line number Diff line change 1616 "@element-hq/element-web-module-api" : " ^1.0.0" ,
1717 "@types/node" : " ^22.10.7" ,
1818 "@types/react" : " ^19" ,
19- "@vitejs/plugin-react" : " ^5 .0.0" ,
19+ "@vitejs/plugin-react" : " ^6 .0.0" ,
2020 "react" : " 19.2.4" ,
2121 "rollup-plugin-external-globals" : " ^0.13.0" ,
2222 "typescript" : " ^5.7.3" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Please see LICENSE files in the repository root for full details.
77
88import { dirname , resolve } from "node:path" ;
99import { fileURLToPath } from "node:url" ;
10- import { defineConfig } from "vite" ;
10+ import { defineConfig , esmExternalRequirePlugin } from "vite" ;
1111import react from "@vitejs/plugin-react" ;
1212import { nodePolyfills } from "vite-plugin-node-polyfills" ;
1313import externalGlobals from "rollup-plugin-external-globals" ;
@@ -26,8 +26,12 @@ export default defineConfig({
2626 outDir : "lib" ,
2727 target : "esnext" ,
2828 sourcemap : true ,
29- rollupOptions : {
30- external : [ "react" ] ,
29+ rolldownOptions : {
30+ plugins : [
31+ esmExternalRequirePlugin ( {
32+ external : [ "react" ] ,
33+ } ) ,
34+ ] ,
3135 } ,
3236 } ,
3337 plugins : [
Original file line number Diff line number Diff line change 18471847 resolved "https://registry.yarnpkg.com/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz#8a88cc92a0f741befc7bc109cb1a4c6b9408e1c5"
18481848 integrity sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==
18491849
1850+ " @rolldown/pluginutils@1.0.0-rc.7 " :
1851+ version "1.0.0-rc.7"
1852+ resolved "https://registry.yarnpkg.com/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.7.tgz#0414869467f0e471a6515d4f506c85fde867e022"
1853+ integrity sha512-qujRfC8sFVInYSPPMLQByRh7zhwkGFS4+tyMQ83srV1qrxL4g8E2tyxVVyxd0+8QeBM1mIk9KbWxkegRr76XzA==
1854+
18501855" @rollup/plugin-inject@^5.0.5 " :
18511856 version "5.0.5"
18521857 resolved "https://registry.yarnpkg.com/@rollup/plugin-inject/-/plugin-inject-5.0.5.tgz#616f3a73fe075765f91c5bec90176608bed277a3"
25452550 " @types/babel__core" " ^7.20.5"
25462551 react-refresh "^0.18.0"
25472552
2553+ " @vitejs/plugin-react@^6.0.0 " :
2554+ version "6.0.1"
2555+ resolved "https://registry.yarnpkg.com/@vitejs/plugin-react/-/plugin-react-6.0.1.tgz#d9113b71a0a592714913eafd9e5e63bcafd0ff15"
2556+ integrity sha512-l9X/E3cDb+xY3SWzlG1MOGt2usfEHGMNIaegaUGFsLkb3RCn/k8/TOXBcab+OndDI4TBtktT8/9BwwW8Vi9KUQ==
2557+ dependencies :
2558+ " @rolldown/pluginutils" " 1.0.0-rc.7"
2559+
25482560" @vitest/coverage-v8@^4.0.0 " :
25492561 version "4.0.18"
25502562 resolved "https://registry.yarnpkg.com/@vitest/coverage-v8/-/coverage-v8-4.0.18.tgz#b9c4db7479acd51d5f0ced91b2853c29c3d0cda7"
You can’t perform that action at this time.
0 commit comments