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:
15
index.html
15
index.html
@@ -92,18 +92,21 @@
|
|||||||
text-shadow: 0 -1px 0 rgba(0,0,0,0.6);
|
text-shadow: 0 -1px 0 rgba(0,0,0,0.6);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script type="importmap">
|
<script type="importmap">
|
||||||
{
|
{
|
||||||
"imports": {
|
"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-dom/": "https://aistudiocdn.com/react-dom@^19.2.1/",
|
||||||
"react/": "https://aistudiocdn.com/react@^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"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ if (!rootElement) {
|
|||||||
throw new Error("Could not find root element to mount to");
|
throw new Error("Could not find root element to mount to");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('Mounting App...');
|
||||||
const root = createRoot(rootElement);
|
const root = createRoot(rootElement);
|
||||||
root.render(
|
root.render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react": "^19.2.1",
|
"react": "^19.2.1",
|
||||||
"react-dom": "^19.2.1",
|
"react-dom": "^19.2.1",
|
||||||
"framer-motion": "^12.23.25",
|
"framer-motion": "10.16.4",
|
||||||
"lucide-react": "^0.556.0"
|
"lucide-react": "0.292.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^22.14.0",
|
"@types/node": "^22.14.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user