Skip to content

Commit ea25c67

Browse files
committed
fix: N8 /. webpack5 workers
1 parent ec069b2 commit ea25c67

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sqlite.android.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ export class SQLiteDatabase extends SQLiteDatabaseBase {
2929
if (!this.db) {
3030
this.db = createDb(this.filePath, this.flags);
3131
if (this.threading && !this.worker) {
32-
const Worker = require('nativescript-worker-loader!./worker');
33-
this.worker = new Worker();
32+
this.worker = new Worker('./worker');
3433
this.worker.onmessage = this.onWorkerMessage;
3534
}
3635
}

0 commit comments

Comments
 (0)