JSPM

esbuild-glsl

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 158
  • Score
    100M100P100Q81861F
  • License MPL-2.0

ESBuild plugin to load webGL shaders from .glsl files.

Package Exports

  • esbuild-glsl
  • esbuild-glsl/dist/index.js
  • esbuild-glsl/dist/index.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (esbuild-glsl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Esbuild Plugin Webgl

test Maintainability codecov Version Downloads npm bundle size Gitpod ready-to-code

ESBuild plugin to load webGL shaders from .glsl files.

Please consider starring this repository and sharing it with your friends.

Getting Started

Installation

$ pnpm add esbuild-plugin-webgl

or

$ npm install esbuild-plugin-webgl

or

$ yarn add esbuild-plugin-webgl

If you are using monorepo or workspaces, you can install this plugin to the root using -w or to a specific workspace using --filter your-package or --scope your-package for pnpm or yarn workspaces, respectively.

Use with tsup

// tsup.config.ts or tsup.config.js
import { defineConfig } from "tsup";
import { webglPlugin } from "esbuild-plugin-webgl";

export default defineConfig(options => ({
    ...
    esbuildPlugins:[webglPlugin()]
}));

Use with esbuild

import { webglPlugin } from "esbuild-plugin-webgl";

esbuild.build({
    ...
    plugins: [webglPlugin()],
});

Alt

License

This library is licensed under the MPL-2.0 open-source license.

Please consider enrolling in our courses or sponsoring our work.


with 💖 by Mayank Kumar Chaudhari