mirror of https://github.com/AMT-Cheif/drift.git
Fix web_worker_example build fail
This commit is contained in:
parent
440753d5e3
commit
769de1dfe2
|
@ -1,17 +1,4 @@
|
|||
targets:
|
||||
# We use dartdevc by default, but the worker should always be compiled with dart2js
|
||||
worker:
|
||||
auto_apply_builders: false
|
||||
dependencies: [":$default"]
|
||||
builders:
|
||||
build_web_compilers|entrypoint:
|
||||
enabled: true
|
||||
generate_for:
|
||||
- web/worker.dart
|
||||
options:
|
||||
compiler: dart2js
|
||||
|
||||
|
||||
$default:
|
||||
builders:
|
||||
drift_dev:
|
||||
|
@ -23,7 +10,8 @@ targets:
|
|||
named_parameters: true
|
||||
new_sql_code_generation: true
|
||||
build_web_compilers|entrypoint:
|
||||
enabled: true
|
||||
generate_for:
|
||||
# This one is compiled in the other target
|
||||
exclude:
|
||||
- "web/worker.dart"
|
||||
- web/worker.dart
|
||||
options:
|
||||
compiler: dart2js
|
||||
|
|
|
@ -166,8 +166,6 @@ class Entries extends Table with TableInfo<Entries, Entrie> {
|
|||
@override
|
||||
Set<GeneratedColumn> get $primaryKey => {id};
|
||||
@override
|
||||
List<Set<GeneratedColumn>> get uniqueKeys => [];
|
||||
@override
|
||||
Entrie map(Map<String, dynamic> data, {String? tablePrefix}) {
|
||||
return Entrie.fromData(data,
|
||||
prefix: tablePrefix != null ? '$tablePrefix.' : null);
|
||||
|
|
|
@ -7,14 +7,14 @@ environment:
|
|||
sdk: '>=2.12.0 <3.0.0'
|
||||
|
||||
dependencies:
|
||||
js: ^0.6.3
|
||||
js: ^0.6.4
|
||||
stream_channel: ^2.1.0
|
||||
drift:
|
||||
|
||||
dev_dependencies:
|
||||
build_runner: ^2.0.0
|
||||
build_web_compilers: ^3.0.0
|
||||
lints: ^1.0.1
|
||||
build_runner: ^2.1.11
|
||||
build_web_compilers: ^3.2.3
|
||||
lints: ^2.0.0
|
||||
drift_dev:
|
||||
|
||||
dependency_overrides:
|
||||
|
|
Loading…
Reference in New Issue