https://github.com/pmndrs/react-three-babel
🛍 A Babel plugin that automatically builds the extend catalogue of known native Three.js elements
https://github.com/pmndrs/react-three-babel
babel-plugin react three
Last synced: 4 months ago
JSON representation
🛍 A Babel plugin that automatically builds the extend catalogue of known native Three.js elements
- Host: GitHub
- URL: https://github.com/pmndrs/react-three-babel
- Owner: pmndrs
- License: mit
- Created: 2021-11-22T21:44:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-10T00:55:54.000Z (over 1 year ago)
- Last Synced: 2024-05-01T11:29:10.233Z (about 1 year ago)
- Topics: babel-plugin, react, three
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@react-three/babel
- Size: 113 KB
- Stars: 55
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-three-babel
[](https://npmjs.com/@react-three/babel)
A Babel plugin for [tree-shaking three.js via JSX](https://docs.pmnd.rs/react-three-fiber/api/canvas#tree-shaking).
```bash
npm install --save-dev @react-three/babel
``````js
// .babelrc or babel.config.js
{
plugins: ['module:@react-three/babel']
}
```