wildcard-resolver
v0.2.0
Published
import files with any extension as raw strings.
Maintainers
Readme
wildcard-resolver
import files with any extension as raw strings.
🔧 When Is This Plugin Useful?
- 🎮 WebGL / GLSL Shaders
Import .vert and .frag files directly as raw text:
import vertexShader from './shaders/basic.vert';
import fragmentShader from './shaders/lighting.frag';
gl.shaderSource(vertexShaderProgram, vertexShader);🚀 No need for bundling tricks — shader files stay separate and readable.
- Code Snippets or Examples Embed snippets in blogs, playgrounds, or editors:
import exampleCode from './snippets/hello-world.asm';
<CodeBlock code={exampleCode} language="asm" />- Plain Text / Markdown / Config Files
import helpText from './docs/help.txt';
console.log(helpText);🚀 Great for embedding documentation, user guides, or licensing info directly in-app.
- ...
Key Features
- ✅ Import Any File as Raw String
- 🚀 Compatible with Astro / Vite
- ✅ Custom Extension Support
- 🗂️ Supports Nested File Imports
