facebook / facebook/lexical

[lexical-playground] [minor] Feature: turn single-file plugins `plugins/*Plugin/index.tsx` into `plugins/*Plugin.tsx`

Open
#8,280 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
57

Description

Similar to https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/plugins/TablePlugin.tsx

The import statements like `import LinkPlugin from './plugins/LinkPlugin'` do work with both single-file and directory style, but the non-`index.tsx`-named plugin files are a tiny bit more convenient to manage in custom user codebases which copy/sync these plugins code from Playground.

Out of 50 plugin dirs currently, only 13 plugins are multi-file, the remaining 37 are single-file `index.tsx` ones

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.