We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c0bee commit 4997951Copy full SHA for 4997951
package.json
@@ -1,6 +1,7 @@
1
{
2
"name": "3d-portfolio",
3
"version": "1.0.0",
4
+ "type": "module",
5
"private": true,
6
"scripts": {
7
"dev": "vite",
@@ -16,6 +17,7 @@
16
17
},
18
"devDependencies": {
19
"gh-pages": "^6.0.0",
- "vite-plugin-glsl": "^1.3.1"
20
+ "vite-plugin-glsl": "^1.1.2",
21
+ "vite-plugin-static-copy": "^0.16.0"
22
}
23
vite.config.js
@@ -1,7 +1,9 @@
// vite.config.js
import { defineConfig } from 'vite'
import { viteStaticCopy } from 'vite-plugin-static-copy'
-import glsl from 'vite-plugin-glsl'
+
+// Use dynamic import for ESM-only package
+const glsl = (await import('vite-plugin-glsl')).default;
8
export default defineConfig({
9
base: './', // Important for GitHub Pages
0 commit comments