# rollup-plugin-typegpu

> A rollup plugin for TypeGPU, transpiling JavaScript functions into WGSL at build-time.

Latest version **0.0.1** (published 2024-12-26) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install rollup-plugin-typegpu
pnpm add rollup-plugin-typegpu
yarn add rollup-plugin-typegpu
bun add rollup-plugin-typegpu
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2024-12-26 |
| First published | 2024-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 25.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3262 |
| Maintainers | iwoplaza, mhawryluk, reczkok |
| Keywords | rollup-plugin, vite-plugin, typegpu, gpgpu, webgpu, wgpu, wgsl, typescript, shaders |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-typegpu
- Repository: https://github.com/software-mansion/TypeGPU
- Homepage: https://typegpu.com
- Issues: https://github.com/software-mansion/TypeGPU/issues
- npm.io page: https://npm.io/package/rollup-plugin-typegpu

## Dependencies (3)

- [magic-string](https://npm.io/package/magic-string.md) ^0.30.11
- [estree-walker](https://npm.io/package/estree-walker.md) ^3.0.3
- [tinyest-for-wgsl](https://npm.io/package/tinyest-for-wgsl.md) ~0.1.0-alpha.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2024-12-26
- 0.0.0 — 2024-12-19

## README

<div align="center">

# rollup-plugin-typegpu

🚧 **Under Construction** 🚧 - [GitHub](https://github.com/software-mansion/TypeGPU/tree/main/packages/rollup-plugin)

</div>

A rollup plugin for [TypeGPU](https://typegpu.com), transpiling JavaScript functions into WGSL at build-time.

```ts
// vite.config.js

import { defineConfig } from 'vite';
import typegpu from 'rollup-plugin-typegpu';

export default defineConfig({
  plugins: [typegpu()],
});

```

## Getting Started

```sh
npm install rollup-plugin-typegpu
```

## TypeGPU is created by Software Mansion

[![swm](https://logo.swmansion.com/logo?color=white&variant=desktop&width=150&tag=typegpu-github 'Software Mansion')](https://swmansion.com)

Since 2012 [Software Mansion](https://swmansion.com) 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](https://swmansion.com/contact/projects?utm_source=typegpu&utm_medium=readme).

---
_Source: https://npm.io/package/rollup-plugin-typegpu · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
