Web Worker regex test (#1354)

Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
This commit is contained in:
Hari Narayanan
2020-12-01 21:21:13 +05:30
committed by GitHub
parent 63a1f52482
commit b774a59db2
10 changed files with 201 additions and 11 deletions

9
plugins/web-worker.js Normal file
View File

@@ -0,0 +1,9 @@
import RegexWorker from "~/assets/js/regex.worker"
export default (context, inject) => {
inject("worker", {
createRejexWorker() {
return new RegexWorker()
},
})
}