react-component / react-component/table
rc-table broken when using parcel / terser
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 618
- Avg merge
- 10h 19m
- Merged PRs (30d)
- 2
Description
When building a project with parcel-bundler, rc-table is broken.
I've setup an example here (using antd and rc-table directly): https://github.com/Tommos0/parcel-typescript-antd . Live here: https://tommos0.github.io/parcel-typescript-antd/dist/
Everything is OK in development mode or when building using parcel build --no-minify. But the minifier used by parcel called terser is somehow creating issues.
I've tried disabling some terser settings using the .terserrc file, but that still doesn't seem to help.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked parcel-typescript-antd reproduction and compare its development build with parcel build --no-minify and the default minified build. Investigate the rc-table behavior under Parcel’s Terser minification; done means the production minified build renders correctly without regressing the working development and no-minify builds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100