-
-
Notifications
You must be signed in to change notification settings - Fork 273
Conversation
src/workers/InlineWorker.js
Outdated
@@ -24,15 +32,15 @@ module.exports = function (content, url) { | |||
blob = new Blob([content]); | |||
} | |||
|
|||
return new Worker(URL.createObjectURL(blob)); | |||
return new createWorker(URL.createObjectURL(blob), options.isSharedWorker); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mistype?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confusing to see both new
and CreateWorker()
, that not looks like a constructor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, new
and CreateWorker()
resolve
is there any progress on shared workers? it would be cool if i use another tab re-using the same worker, would be much faster |
module.exports = function (content, url) { | ||
function CreateWorker(url, isSharedWorker) { | ||
if (isSharedWorker) { | ||
return new isSharedWorker(url); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return new isSharedWorker(url); | |
return new SharedWorker(url); |
This is a slightly adjusted version of webpack-contrib#178 Signed-off-by: Andrew Thornton <art27@cantab.net>
This is a slightly adjusted version of webpack-contrib#178 Signed-off-by: Andrew Thornton <art27@cantab.net>
This is a slightly adjusted version of webpack-contrib#178 Signed-off-by: Andrew Thornton <art27@cantab.net>
This is a slightly adjusted version of webpack-contrib#178 Signed-off-by: Andrew Thornton <art27@cantab.net>
Done here #247 |
This PR contains a:
Motivation / Use-Case
no
Breaking Changes
no
Additional Info
add isLoaderWorker options