GoogleChromeLabs/worker-plugin

Failed to using 'importScripts' on *worker.js

cwwjsyc opened this issue · 1 comments

Vue Cli . I want use put some utility methos(e.g fetch indexeddb ...) in a tool.js
And then use self.importScipts add tool.js to *worker.js. but have error like:
Uncaught TypeError: Failed to execute 'importScripts' on 'WorkerGlobalScope': Module scripts don't support importScripts().

@cwwjsyc what solved your issue?