vite-plugin-lygia-resolver
Version:
Convenient way to import GLSL shaders from Lygia library at build time
19 lines (18 loc) • 514 B
TypeScript
import type { Plugin } from 'vite';
type PluginOptions = {
enableHmr: boolean;
}
/**
* @function
* @name glsl
* @description Plugin entry point to import,
* inline, (and compress) GLSL shader files
*
* @see {@link https://vitejs.dev/guide/api-plugin.html}
* @link https://github.com/UstymUkhman/vite-plugin-glsl
*
* @param {{enableHmr: boolean}} options Plugin config object
*
* @returns {Plugin} Vite plugin that converts shader code
*/
export default function (options?: PluginOptions): Plugin;