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

Require the non-minified dist build in index #79

Merged
merged 1 commit into from
Feb 15, 2016
Merged

Require the non-minified dist build in index #79

merged 1 commit into from
Feb 15, 2016

Conversation

idan
Copy link
Contributor

@idan idan commented Feb 15, 2016

index.js was introduced in 5023619, and it imports the minified distribution build by default. This causes two problems:

  1. It necessitates the addition of special workarounds to get the unminified build in development.
  2. It causes webpack to break if users have the noParse option set for minified libraries, say with a pattern that matches *.min.js.. This option greatly enhances performance for webpack builds as it doesn't unpack and repack minified libraries, but it has a hard constraint that the unprocessed file NOT use require().

Requiring the unminified build by default lets downstream tools handle bundling and minification in production, instead of forcing it by default.

`index.js` was introduced in 5023619, and it imports the minified distribution build by default. This causes two problems:

1. It necessitates the addition of special workarounds to get the unminified build in development.
2. It causes webpack to break if users have the `noParse` option set for minified libraries, say with a pattern that matches `*.min.js.`. This option greatly enhances performance for webpack builds as it doesn't unpack and repack minified libraries, but it has a hard constraint that the unprocessed file **NOT** use `require()`.

Requiring the unminified build by default lets downstream tools handle bundling and minification in production, instead of forcing it by default.
wwayne added a commit that referenced this pull request Feb 15, 2016
Require the non-minified dist build in index
@wwayne wwayne merged commit 3297196 into ReactTooltip:master Feb 15, 2016
@wwayne
Copy link
Collaborator

wwayne commented Feb 15, 2016

Thanks for your information : )

@idan idan deleted the patch-1 branch February 15, 2016 12:26
@idan
Copy link
Contributor Author

idan commented Feb 15, 2016

🍰 ✨ thank you!

Are you planning an NPM release sometime soon?

@wwayne
Copy link
Collaborator

wwayne commented Feb 15, 2016

Just released 1.1.2

@idan
Copy link
Contributor Author

idan commented Feb 15, 2016

😍 You === best.

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.

2 participants