feat: Update dependencies and CDN imports

Updates `framer-motion` and `lucide-react` to specific versions. Also refactors CDN imports in `index.html` to use `esm.sh` for React v18, aligning with the updated dependencies and ensuring correct module resolution.
This commit is contained in:
m5rcel { Marcel }
2025-12-09 09:20:41 +01:00
parent 3eeed86783
commit d97bc589f0
3 changed files with 12 additions and 8 deletions

View File

@@ -95,15 +95,18 @@
<script type="importmap">
{
"imports": {
"react": "https://aistudiocdn.com/react@^19.2.1",
"react": "https://esm.sh/react@18.2.0",
"react-dom": "https://esm.sh/react-dom@18.2.0",
"react-dom/client": "https://esm.sh/react-dom@18.2.0/client",
"react/jsx-runtime": "https://esm.sh/react@18.2.0/jsx-runtime",
"framer-motion": "https://esm.sh/framer-motion@10.16.4?external=react,react-dom",
"lucide-react": "https://esm.sh/lucide-react@0.292.0?external=react,react-dom",
"react-dom/": "https://aistudiocdn.com/react-dom@^19.2.1/",
"react/": "https://aistudiocdn.com/react@^19.2.1/",
"framer-motion": "https://aistudiocdn.com/framer-motion@^12.23.25",
"lucide-react": "https://aistudiocdn.com/lucide-react@^0.556.0"
"react/": "https://aistudiocdn.com/react@^19.2.1/"
}
}
</script>
</head>
</head>
<body>
<div id="root"></div>
</body>

View File

@@ -7,6 +7,7 @@ if (!rootElement) {
throw new Error("Could not find root element to mount to");
}
console.log('Mounting App...');
const root = createRoot(rootElement);
root.render(
<React.StrictMode>

View File

@@ -11,8 +11,8 @@
"dependencies": {
"react": "^19.2.1",
"react-dom": "^19.2.1",
"framer-motion": "^12.23.25",
"lucide-react": "^0.556.0"
"framer-motion": "10.16.4",
"lucide-react": "0.292.0"
},
"devDependencies": {
"@types/node": "^22.14.0",