arian / partition-bundle

A browserify plugin to partition your modules in different bundles
114 stars 18 forks source link

Compatibility with Webworkify #28

Open chrisvoll opened 8 years ago

chrisvoll commented 8 years ago

Hello! We've been using partition-bundle for a while, and have found it to be fantastic, but we've recently run into an issue with compatibility with Webworkify, a module that allows you to create web workers with require() statements.

It expects several arguments to be passed in that currently are not, including Browserify's standard bundle function, the modules, and the module cache.

We've hacked together a solution that does this, but I imagine there's a more glamorous way to do it. I'm curious what your thoughts are, and whether this should be officially supported or not. Thanks!