Skip to content

Commit

Permalink
Another minified shader fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flatpickles committed Nov 19, 2023
1 parent 280d730 commit 6c3363b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sketchbook2",
"version": "0.2.6",
"version": "0.2.7",
"private": true,
"scripts": {
"dev": "vite dev",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function viteGlslify() {
code = code.replace('export default "', '').slice(0, -1);
} else if (/export\s*{/.test(code)) {
const afterDef = code.split(/=\s*"/)[1];
code = afterDef.split(/";\n/)[0];
code = afterDef.split(/";/)[0];
} else {
throw new Error(`Unexpected shader file format for ${id}: ${code}`);
}
Expand Down

0 comments on commit 6c3363b

Please sign in to comment.