-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 65 add vite plugin glsl for shaders support via options (#68)
* feat: add vite-plugin-glsl via options * chore(deps): update * chore: fix build + add externals * chore: include script to fix package exports * chore: add build-module scrit * chore: rename build module script --------- Co-authored-by: userquin <userquin@gmail.com>
- Loading branch information
1 parent
3c131f6
commit 965803a
Showing
8 changed files
with
1,069 additions
and
412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"name": "tres-nuxt-module", | ||
"type": "module", | ||
"private": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
import glsl from 'vite-plugin-glsl' | ||
|
||
export default defineNuxtConfig({ | ||
modules: ['../src/module', '@nuxt/devtools'], | ||
tres: { | ||
// for testing purposes, and so we test both deduplication + auto-detection capabilities | ||
modules: ['@tresjs/cientos'], | ||
devtools: true, | ||
}, | ||
vite: { | ||
plugins: [glsl()], | ||
glsl: true, | ||
}, | ||
}) |
Oops, something went wrong.