unplugin-typegpu
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

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

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()],
});

TypeGPU is created by Software Mansion

swm

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.

Package Sidebar

Install

npm i unplugin-typegpu

Homepage

typegpu.com

Weekly Downloads

132

Version

0.2.1

License

MIT

Unpacked Size

97.7 kB

Total Files

65

Last publish

Collaborators

  • iwoplaza
  • mhawryluk
  • reczkok
  • oloiwojo