Skip to content

Commit 4997951

Browse files
author
Parsa Azari
committed
test
1 parent 01c0bee commit 4997951

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "3d-portfolio",
33
"version": "1.0.0",
4+
"type": "module",
45
"private": true,
56
"scripts": {
67
"dev": "vite",
@@ -16,6 +17,7 @@
1617
},
1718
"devDependencies": {
1819
"gh-pages": "^6.0.0",
19-
"vite-plugin-glsl": "^1.3.1"
20+
"vite-plugin-glsl": "^1.1.2",
21+
"vite-plugin-static-copy": "^0.16.0"
2022
}
2123
}

vite.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// vite.config.js
22
import { defineConfig } from 'vite'
33
import { viteStaticCopy } from 'vite-plugin-static-copy'
4-
import glsl from 'vite-plugin-glsl'
4+
5+
// Use dynamic import for ESM-only package
6+
const glsl = (await import('vite-plugin-glsl')).default;
57

68
export default defineConfig({
79
base: './', // Important for GitHub Pages

0 commit comments

Comments
 (0)