asvd / jailed

execute untrusted code with custom permissions
MIT License
1k stars 73 forks source link

Add webpack support #26

Closed cristiano-belloni closed 8 years ago

cristiano-belloni commented 8 years ago

This adds Webpack support. There are two faces of this:

1 - Add the browser entry to package.json, as described in https://github.com/asvd/jailed/issues/22 2 - jailed.js fails with latest Webpacks, because the process variable is defined. I added another test to check if process.browser is false, before we decide we are on Node.

asvd commented 8 years ago

okay, thanks!