Bug: maybe missing dependency `rollup` in `lexical-playground`
- Dominant language
- TypeScript
- Stars
- 23.9k
- Forks
- 2.2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 55
Description
I have a script building the playground, and it fails with `no module rollup`, until I add it:
```shell
curl -L https://github.com/facebook/lexical/archive/refs/tags/v0.24.0.tar.gz | tar -xzf - --strip-components=1
# npm install rollup
npm install --prefix packages/lexical-playground --force
npm run build
npm run --prefix packages/lexical-playground build-prod
```
Maybe it is included in some other package.json and this error does not get triggered in the main supported lexical setups, but it would be awesome if it was added in the playground's package.json
---
I also have another setup, where I download only playground code and build it (and the rest of lexical's packages are pulled from npm). This sequence is a useful starting point for starting hacking a custom app on top of playground functionality / scaffolding. It fails to find `terser` until I add it:
```shell
curl -L https://github.com/facebook/lexical/archive/refs/tags/v0.24.0.tar.gz | tar -xzf - --strip-components=1 lexical-0.24.0/packages/lexical-playground lexical-0.24.0/packages/shared
sed -i "s@import moduleResolution from '../shared/viteModuleResolution';@import * as path from 'node:path';@" packages/lexical-playground/vite.prod.config.ts
sed -i "s@alias: moduleResolution('production')@alias: [ { find: 'shared', replacement: path.resolve('../shared/src') } ]@" packages/lexical-playground/vite.prod.config.ts
# npm install terser
npm install --prefix packages/lexical-playground --force
npm run --prefix packages/lexical-playground build-prod
```
---
Also, I have to put in `--force` in all setups, otherwise the build errors out because of some dependency versions conflicts. Also, there are plenty of
Contributor guide
Assessment
This issue has not been assessed yet.