sw.js inline import ?url
filecontent, it should be return a file url.
#9256
Labels
service worker
Stuff related to service workers
Describe the bug
sw.js inline import
?url
filecontent, it should be return a file url.Reproduction
you will see the
service-worker.js
file include to the?url
filecontentLogs
System Info
Severity
serious, but I can work around it
Additional Information
I have import a large wasm file (size 1.6M) in sw.js, if inline the wasm file will make sw.js load slow. (
assetsInlineLimit: 0
option is not working for sw.js)My current solution is to copy the wasm files to the
static
directory and manually set the wasmUrlThe text was updated successfully, but these errors were encountered: