Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add capability to remove prop types for extending applications #69

Closed
virgofx opened this issue Jun 3, 2017 · 0 comments
Closed

Comments

@virgofx
Copy link
Contributor

virgofx commented Jun 3, 2017

Prop types in this package are static and included in both development and production. Best practice is to use the plugin babel-plugin-transform-react-remove-prop-types with mode wrap. This allows developers to use the development/ES/imported version with prop types or use the external version that is minified fully.

virgofx added a commit to virgofx/react-transition-group that referenced this issue Jun 3, 2017
… size and

allow users that import this package to include prop types in
development and optionally remove them using Webpacks UglifyJS + Define
plugin.
jquense pushed a commit that referenced this issue Jun 12, 2017
* Fixes #69: Adding capability to reduce production build output size and
allow users that import this package to include prop types in
development and optionally remove them using Webpacks UglifyJS + Define
plugin.

* Updated .babelrc that properly wraps prop-types.

* Restoring the original constant declaration for prop types as uglify
does find dead code and remove it.

* Updating changelog.
jquense pushed a commit that referenced this issue Jun 12, 2017
* Fixes #69: Adding capability to reduce production build output size and
allow users that import this package to include prop types in
development and optionally remove them using Webpacks UglifyJS + Define
plugin.

* Updated .babelrc that properly wraps prop-types.

* Restoring the original constant declaration for prop types as uglify
does find dead code and remove it.

* Updating changelog.
jquense pushed a commit that referenced this issue Jun 12, 2017
* Fixes #69: Adding capability to reduce production build output size and
allow users that import this package to include prop types in
development and optionally remove them using Webpacks UglifyJS + Define
plugin.

* Updated .babelrc that properly wraps prop-types.

* Restoring the original constant declaration for prop types as uglify
does find dead code and remove it.

* Updating changelog.
jquense added a commit that referenced this issue Jun 12, 2017
* Initial

* clean up prop names

* more exploration

* fun children

* fix tests

* some comment docs

* Incorporated development + production builds into /dist (#64) (#66)

* Incorporated development + production builds into /dist (#64) and
updated Readme to include CDN/External information.

* Dropping references to Webpack specific build configurations in Readme
and adding clarity for CDN/external.

* Enhancement for best practice prop types. (#70)

* Fixes #69: Adding capability to reduce production build output size and
allow users that import this package to include prop types in
development and optionally remove them using Webpacks UglifyJS + Define
plugin.

* Updated .babelrc that properly wraps prop-types.

* Restoring the original constant declaration for prop types as uglify
does find dead code and remove it.

* Updating changelog.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant