Licence
MIT
Version
0.11.6
Deps
11
Size
90 kB
Vulns
0
Weekly
0
A set of bundler plugins that enhance TypeGPU with:
- JavaScript/TypeScript shader support ('use gpu' directive)
- Improved debugging with automatic naming of resources
Getting Started
npm install unplugin-typegpu- babel
// babel.config.js (React Native with Expo)
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: ['unplugin-typegpu/babel'],
};
};- vite
// vite.config.js
import { defineConfig } from 'vite';
import typegpu from 'unplugin-typegpu/vite';
export default defineConfig({
plugins: [typegpu()],
});- bun
// preload.ts
import { plugin } from 'bun';
import typegpu from 'unplugin-typegpu/bun';
void plugin(typegpu());TypeGPU is created by Software Mansion
Since 2012 Software Mansion is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product – Hire us.