Surface/lib/database/drift_worker.dart
2025-02-22 16:22:33 +08:00

8 lines
294 B
Dart

import 'package:drift/wasm.dart';
// Use `dart compile js -O4 ./drift_worker.dart` to compile this file.
// And place it in the web/ directory.
// When compiled with dart2js, this file defines a dedicated or shared web
// worker used by drift.
void main() => WasmDatabase.workerMainForOpen();