Last active
August 31, 2021 21:22
-
-
Save yorgyetson/0c5d6b6c663bb92e587a4fd5b8165a5f to your computer and use it in GitHub Desktop.
Sapper + svelte/gl
This file contains hidden or 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
//index.svelte | |
let GLTest; | |
onMount(async () => { | |
const module = await import('../MyGLComponent.svelte'); | |
GLTest = module.default; | |
}); | |
<svelte:component this={GLTest} /> | |
//rollup.config.js | |
import glslify from "rollup-plugin-glslify"; | |
... | |
export default { | |
client: { | |
... | |
plugins: [ | |
glslify(), | |
... | |
], | |
... | |
server: { | |
... | |
plugins: [ | |
glslify(), | |
... | |
], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment