plotly / plotly/react-plotly.js

Plotly react lib leads to slow React/webpack Build.

Open
#211 3 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
138
Avg merge
3d 2h
Merged PRs (30d)
4

Description

Would be nice to have an option just to include min plotly lib as a link reference to avoid build!

I am using typescript:

"plotly.js": "1.57.1",
"react-plotly.js": "2.5.0",
"react-scripts": "4.0.0",
"react": "17.0.1",

Referenced as

import Plot from 'react-plotly.js';

I am getting out of memory and speed issues when this lib is used.
Any ideas how to rerefence this in another way?

Related issue:
https://github.com/plotly/react-plotly.js/issues/130

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 related issue #130 and the import Plot from 'react-plotly.js' usage described here. Determine the supported way to reference a minified Plotly library without bundling it, and document a working option that avoids the reported build slowdown and memory failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, typescript
Domain
build-system, data-visualization, frontend, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.