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

fix: use gulp-umd instead of buggy globalize #52

Merged
merged 1 commit into from
Nov 3, 2016

Conversation

zetlen
Copy link
Contributor

@zetlen zetlen commented Nov 2, 2016

The globalize.js file used to export to various module loader environments had some buggy behavior in it, making it incompatible with Webpack in next.js. This replaces the hardcoded globalize.js and IIFE wrapper with the standardized UMD wrapper, provided by the gulp-umd
plugin.

There is no change in functionality, except that for isomorphic apps, Pressure.js will load, but all its methods will be no-ops.

The `globalize.js` file used to export to various module loader
environments had some buggy behavior in it, making it incompatible with
Webpack in next.js. This replaces the hardcoded `globalize.js` and IIFE
wrapper with the standardized UMD wrapper, provided by the `gulp-umd`
plugin.

There is no change in functionality, except that for isomorphic apps,
Pressure.js will load, but all its methods will be no-ops.
@stuyam
Copy link
Owner

stuyam commented Nov 2, 2016

@zetlen wow this is awesome 🙌! Really great stuff in here, that UMD package is definitely a big improvement and makes the compilation less fragile so thank you for that! I will update this later tonight!

Thanks so much again!

@stuyam stuyam merged commit 03e2ffe into stuyam:master Nov 3, 2016
@stuyam
Copy link
Owner

stuyam commented Nov 3, 2016

@zetlen just deployed this as v2.0.2, thanks for the contribution! Greatly appreciated. https://github.com/stuyam/pressure/releases/tag/v2.0.2

@zetlen
Copy link
Contributor Author

zetlen commented Nov 4, 2016

Hey, I'm sorry it took me a while to respond to this--work has been hectic. Sorry I forgot to remote the old dep, that was sloppy of me. I see you've taken care of it.

Hey, your library is great. I really appreciate you doing the work to normalize this into a clean API. You can see it in action, in my own little way, on my personal website: https://zetlen.github.io

@stuyam
Copy link
Owner

stuyam commented Nov 4, 2016

@zetlen that is awesome to hear, love the site, very clever! Again I appreciate the help with that last PR, big help.

Quick question, would you mind taking a look at this issue, I know that pressure works, but I am not sure why this is the case: #53

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