Build plugins for TypeGPU, enabling seamless JavaScript -> WGSL transpilation and improved debugging.
npm install unplugin-typegpuš§ Under Construction š§ -
GitHub
Read more about the plugin in the
TypeGPU documentation.
Build plugins for TypeGPU that enable:
- Seamless JavaScript -> WGSL transpilation
- [š§ TODO] Improved debugging with automatic naming of resources
``sh`
npm install unplugin-typegpu
- babel
`js
// babel.config.js (React Native with Expo)
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: ['unplugin-typegpu/babel'],
};
};
`
- vite
`ts
// vite.config.js
import { defineConfig } from 'vite';
import typegpu from 'unplugin-typegpu/vite';
export default defineConfig({
plugins: [typegpu()],
});
``

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.