Webpack configuration preset for React Figma plugin development. Version 0.0.7 (last release, no recent updates). Provides a preconfigured webpack setup optimized for Figma plugin projects using React, TypeScript, and SVG. Requires manual installation of peer dependencies (html-webpack-plugin, html-webpack-inline-source-plugin, svg-inline-loader, ts-loader, webpack, webpack-merge). Exports a function that returns a webpack config object, with optional overrides for entry points and other settings. Lightweight alternative to custom webpack setup for Figma plugins, but limited documentation and low activity.
npm install react-figma-webpack-configVerified import paths — ran on the pinned version, not inferred.
Creates a webpack configuration for a Figma plugin with React UI and TypeScript code entry points.
Install all required packages: npm i html-webpack-inline-source-plugin html-webpack-plugin svg-inline-loader ts-loader webpack webpack-merge -D
Set entry as { ui: './path/to/ui', code: './path/to/code' }Configure ProvidePlugin or define plugin to expose 'figma' global if needed.
npm install html-webpack-inline-source-plugin --save-dev
Use require() instead of import: const configure = require('react-figma-webpack-config');Ensure entry paths are correct and files exist, e.g., configure({ entry: { ui: './src/ui.tsx', code: './src/code.ts' } })