webpack/script-loader — pull request #5 by eternalko (2014-11-23 01:03:09+00:00)
Title: Make script loader Web Worker friendly

Since `window` is not accessible in a Web Worker context, code like:
`require("script!myModule.js”);` will not work.

This is a fix.

A (maybe) better solution would be to have `webworker-script-loader`
but I don't have an opinion on that.