react-component / react-component/table

rc-table broken when using parcel / terser

Open
#458 2 comments 3 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.