Lee JeongHo

Results 16 comments of Lee JeongHo

Is there any chance to merge the patch about setTimeout on above or the other plan for this issue?

In this case, the screenshot is useless. there are no exception or error throws for this. following is the information about reproduced environment. UA: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0;...

seems like worker is forked with empty script. ![image](https://user-images.githubusercontent.com/1837682/117677496-79916480-b1e9-11eb-8775-871690b46b0a.png) ![image](https://user-images.githubusercontent.com/1837682/117677528-80b87280-b1e9-11eb-82f6-d5c8d888c882.png) ![image](https://user-images.githubusercontent.com/1837682/117677844-c8d79500-b1e9-11eb-81dd-0eee7d984a9a.png)

> Can you console log https://github.com/webpack-contrib/worker-loader/blob/master/src/runtime/inline.js#L23 `content` and `blob` and show me it here? Are you sure L23 is the place what you want to put logpoint? (Blob is supported...

It's not. BlobBuilder won't used. https://github.com/webpack-contrib/worker-loader/blob/master/src/runtime/inline.js#L14-L25 is never reached because globalScope.Blob is available. ![image](https://user-images.githubusercontent.com/1837682/117698436-b156d700-b1fe-11eb-86fe-9fbb82e21b3e.png) and Blob data is not broken either as you can see. ![image](https://user-images.githubusercontent.com/1837682/117699062-5a053680-b1ff-11eb-86af-3de61aec7e15.png)

I've already attached. see the last line of logs. ![](https://user-images.githubusercontent.com/1837682/117680317-02a99b00-b1ec-11eb-984e-369627004371.png) - blob generation is broken: No. It's working If I commented out revokeObjectURL or give some delay using setTimeout. -...

https://github.com/webpack-contrib/worker-loader/blob/master/src/runtime/inline.js#L35 ~~Replacing that line with `globalScope.setImmediate(URL.revokeObjectURL, objectURL);` works.~~ ~~oops, no. Above approach throws an error on safari. I'll try another way.~~ It works now. ```ts if (globalScope.setImmediate) { globalScope.setImmediate(URL.revokeObjectURL, objectURL);...

I've found a minor glitch for this approach. https://github.com/webpack-contrib/worker-loader/issues/292#issuecomment-839061164