diff --git a/package-lock.json b/package-lock.json index 142ea98..d41f5cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sketchbook2", - "version": "0.2.6", + "version": "0.2.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "sketchbook2", - "version": "0.2.6", + "version": "0.2.7", "dependencies": { "@types/js-cookie": "^3.0.3", "isbot": "^3.7.0", diff --git a/package.json b/package.json index 04361f0..ea5a982 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sketchbook2", - "version": "0.2.6", + "version": "0.2.7", "private": true, "scripts": { "dev": "vite dev", diff --git a/vite.config.ts b/vite.config.ts index 496185d..b386cb3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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}`); }