Skip to content

Build jsx -> js on pre-publish - #9

Merged
rvierich merged 2 commits into
uken:masterfrom
MikeKlemarewski:pre-publish-build
Feb 27, 2016
Merged

rvierich merged 2 commits into
uken:masterfrom
MikeKlemarewski:pre-publish-build

Conversation

@MikeKlemarewski

Copy link
Copy Markdown

Most React components that are published to NPM expose an ES2015 compatible version JS file that can be required/imported into projects without running it through a loader like Babel. This should do the trick. It will create a js file under the dist folder when you are publishing to npm. Hope you find it useful!

@rvierich

Copy link
Copy Markdown
Contributor

Thanks!

rvierich added a commit that referenced this pull request Feb 27, 2016
@rvierich
rvierich merged commit cbd64be into uken:master Feb 27, 2016
@dsernst

dsernst commented Nov 23, 2016

Copy link
Copy Markdown
Contributor

It doesn't look like the version currently in npm has this dist/ folder. Getting build errors, incompatible with create-react-app defaults.

@dsernst

dsernst commented Nov 23, 2016 •

Copy link
Copy Markdown
Contributor

Was this ever pushed to NPM? It doesn't look like the current version has any scripts in its package.json.

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

Successfully merging this pull request may close these issues.

3 participants