Files
.github
android
api
assets
debian
drift_schemas
ios
lib
controllers
database
account.dart
attachment.dart
chat.dart
database.dart
database.g.dart
database.steps.dart
drift_worker.dart
keypair.dart
sticker.dart
providers
screens
types
widgets
firebase_options.dart
logger.dart
main.dart
router.dart
theme.dart
linux
macos
snap
test
web
windows
.gitignore
.metadata
.roadsignrc
README.md
analysis_options.yaml
build.yaml
devtools_options.yaml
firebase.json
pubspec.lock
pubspec.yaml
roadsign.toml
App/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();