browserify / webworkify

launch a web worker that can require() in the browser with browserify
Other
417 stars 39 forks source link

What are those magical arguments at index.js start ? #4

Closed puzrin closed 10 years ago

puzrin commented 10 years ago

https://github.com/substack/webworkify/blob/master/index.js#L1-L3

We use custom packager to process require() directives and built client assets. It fails with webworkify module, because it relies on some unknown params from external wrapper.

Could you explain, what should be there? Could not find details in doc. Or give a link please, if those are documented somewhere.

PS. Probably, we should completely migrate to browserify, it's awesome. But now i need a "quick fix".

ghost commented 10 years ago

The parameters are: modules, cache, entry: https://github.com/substack/browser-pack/blob/master/prelude.js#L36

They are used to introspect the contents of other source files in the bundle.

puzrin commented 10 years ago

Thanks!