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

globals, but not on window? #56

Open
gnimmelf opened this issue Aug 11, 2015 · 1 comment
Open

globals, but not on window? #56

gnimmelf opened this issue Aug 11, 2015 · 1 comment

Comments

@gnimmelf
Copy link

Hi,

I am using Browserify in a legacy browser environment, which means that the window namespace is volatile and unsuitable for storing global variables that I want as globals in my bundles (yes, I want that).

So, I need a way to make globals within a build, either per bundle, or for all bundles.

have been googling this for a while, and can't find a suitable solution, any suggestions before I dig into trying to write a plugin that sets stuff on all modules (doable?).

Thanks.

@gnimmelf
Copy link
Author

Ok, I think I need to specify: I'm looking for a way to to set a global state-object, not just make variables available within the module scope...

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