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

Allow both npm and bower releasing #34

Open
grtjn opened this issue Nov 10, 2017 · 1 comment
Open

Allow both npm and bower releasing #34

grtjn opened this issue Nov 10, 2017 · 1 comment

Comments

@grtjn
Copy link

grtjn commented Nov 10, 2017

Here a few tricks to simply support both: https://stackoverflow.com/questions/12571737/module-exports-client-side/12571781#12571781

I am running a test with this simplified line myself:

(module || {}).exports = this.mlvisjs = mlvisjs;
@grtjn
Copy link
Author

grtjn commented Nov 10, 2017

Correction, that didn't work, using this for now:

(typeof module !== 'undefined' && module !== null ? module : {}).exports = this.mlvisjs = mlvisjs;

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