Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

buildStatic support for context without a global #812

Merged
merged 1 commit into from
Jun 14, 2017

Conversation

chrmod
Copy link
Contributor

@chrmod chrmod commented Jun 12, 2017

I'm building a sfx bundle to be run inside of Firefox process script.

In that context, explicit global object (ContentProcessMessageManager) does not happen to accessible via variable.

This PR aims to generate a bundle that will not throw errors on missing global in process script context.

Not sure if using this instead of self or global makes sense, but at least no errors are thrown and bundle works as expected. Please help to improve if there is a way.

Some mozilla docs:

@chrmod
Copy link
Contributor Author

chrmod commented Jun 12, 2017

it does not really work atm, I'm going to update the PR as soon as it will also making the tests green.

@chrmod
Copy link
Contributor Author

chrmod commented Jun 12, 2017

the problem was wrong version of uglify-js used for minify.sh

@guybedford guybedford merged commit 3a4dacb into systemjs:master Jun 14, 2017
@guybedford
Copy link
Member

Thanks, I'll post this out with the coming release cycle.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants