
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
esbuild-plugin-glsl
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
An esbuild plugin that adds support for .frag
, .vert
, .glsl
and .wgsl
file imports with optional shader minification.
npm install esbuild-plugin-glsl
import { build } from "esbuild";
import { glsl } from "esbuild-plugin-glsl";
build({
entryPoints: ["input.js"],
outfile: "output.js",
bundle: true,
plugins: [glsl({
minify: true
})]
});
Option | Description | Default |
---|---|---|
minify | Enables or disables basic shader minification. | follows minify |
resolveIncludes | When enabled, shaders can include other shaders with the custom #include "path" directive. | true |
preserveLegalComments | Preserves comments that start with //! or /*! or include @license or @preserve . | follows legal-comments |
To make the TypeScript compiler know how to handle shader sources, add a shaders.d.ts
ambient declaration file to your project:
declare module "*.wgsl" {
const value: string;
export default value;
}
declare module "*.glsl" {
const value: string;
export default value;
}
declare module "*.frag" {
const value: string;
export default value;
}
declare module "*.vert" {
const value: string;
export default value;
}
Use the issue tracker to propose and discuss changes. Maintain the existing coding style. Lint and test your code.
FAQs
An esbuild plugin that adds support for shader imports.
The npm package esbuild-plugin-glsl receives a total of 1,243 weekly downloads. As such, esbuild-plugin-glsl popularity was classified as popular.
We found that esbuild-plugin-glsl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.