Skip to content

Raw import of non-js files #1869

Answered by patak-dev
micha149 asked this question in Q&A
Feb 4, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Vite is compatible with most rollup plugins, including file loaders. Check out Awesome Rollup for a list of rollup plugins to try out.

Checking the source code of these two, both should work fine

https://github.com/vwochnik/rollup-plugin-glsl

Converts GLSL shader source files to modules

https://github.com/glslify/rollup-plugin-glslify

Import GLSL strings with glslify (a node.js-style module system for GLSL).

Please report back if you find any issues, and also if they worked correctly, I am starting to add compatible community plugins to https://vite-rollup-plugins.patak.dev, and I still didn't get to these ones 👍🏼

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@micha149
Comment options

@yyx990803
Comment options

Answer selected by micha149
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants