browser-server icon indicating copy to clipboard operation
browser-server copied to clipboard

Worker intercepts browser-server bundle (and initial HTML request)

Open t-mullen opened this issue 7 years ago • 1 comments

I noticed when experimenting with no prefix (a "/" prefix) that the worker can intercept the browser-server bundle itself, as well as the initial HTML request. This makes the worker unable to respond (since it's waiting on the script it's trying to load).

I think this could be solved by adding an option to specify certain paths (for example /bundle.js and /index.html) that the worker should not intercept.

Not needing a prefix would be extremely useful for drop-in lazy loading, since no HTML refactoring would be required.

t-mullen avatar May 30 '17 20:05 t-mullen

Great idea. Will free to send me a PR :)

mafintosh avatar May 30 '17 23:05 mafintosh