2023-05-31 13:48:29 -07:00
|
|
|
import 'package:drift/wasm.dart';
|
2022-04-02 09:01:10 -07:00
|
|
|
|
2023-04-10 13:58:15 -07:00
|
|
|
/// This Dart program is the entrypoint of a web worker that will be compiled to
|
|
|
|
/// JavaScript by running `build_runner build`. The resulting JavaScript file
|
|
|
|
/// (`shared_worker.dart.js`) is part of the build result and will be shipped
|
|
|
|
/// with the rest of the application when running or building a Flutter web app.
|
2022-04-02 09:01:10 -07:00
|
|
|
void main() {
|
2023-05-31 13:48:29 -07:00
|
|
|
return WasmDatabase.workerMainForOpen();
|
2022-04-02 09:01:10 -07:00
|
|
|
}
|