NativeScript / worker-loader

36 stars 20 forks source link

fix: handle calls to itself to avoid an infinite loop #34

Closed vchimev closed 5 years ago

vchimev commented 5 years ago

In case the nativescript-worker-loader calls itself, it cases an infinite loop of creating a new worker chunk for each call and results in webpack compiler out of memory exception.

Error:

RangeError: Maximum call stack size exceeded

Fixes: https://github.com/NativeScript/worker-loader/issues/33.