Use react-draggable without bundling prop-types dependency

Open
#620 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, react

Research direction

Start by reviewing the package's build and dependency configuration to understand how prop-types enters the final bundle. The issue provides no file or test entry point; done would mean identifying a supported way to use react-draggable without bundling prop-types and documenting or implementing that behavior.

Written by the indexing model from the issue text.

Description

Is there a way to use this library without bundling the prop-types dependency? If this would be published as a module it would be possible to use babel-plugin-transform-react-remove-prop-types I guess. But in this case I can't find a way to remove the prop-types from the final bundle.

Dominant language
JavaScript
Stars
9.3k
Forks
1k
Avg merge
3d 8h
Merged PRs (30d)
4

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.

More from react-grid-layout/react-draggable

All issues in react-grid-layout/react-draggable

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.