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

Add docs for publishing a react component #8432

Closed
wants to merge 0 commits into from

Conversation

laumair
Copy link

@laumair laumair commented Nov 27, 2016

Related to: #7882 and #8060

* Since we do not want others to import our ES6 version of component when they import our package in their applications, we would need to update our `main` option in our `package.json` to point to the transpiled version of our component. Our scripts and name become
``` javascript
"main": "dist/index.js", // Now points to the transpiled version
"scripts": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closed this for #8439 @brigand Indentation fixed!

@laumair
Copy link
Author

laumair commented Nov 28, 2016

Duplicate of #8439

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

Successfully merging this pull request may close these issues.

3 participants