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:
|
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:
|
$default:
|
||||||
builders:
|
builders:
|
||||||
drift_dev:
|
drift_dev:
|
||||||
|
@ -23,7 +10,8 @@ targets:
|
||||||
named_parameters: true
|
named_parameters: true
|
||||||
new_sql_code_generation: true
|
new_sql_code_generation: true
|
||||||
build_web_compilers|entrypoint:
|
build_web_compilers|entrypoint:
|
||||||
|
enabled: true
|
||||||
generate_for:
|
generate_for:
|
||||||
# This one is compiled in the other target
|
- web/worker.dart
|
||||||
exclude:
|
options:
|
||||||
- "web/worker.dart"
|
compiler: dart2js
|
||||||
|
|
|
@ -166,8 +166,6 @@ class Entries extends Table with TableInfo<Entries, Entrie> {
|
||||||
@override
|
@override
|
||||||
Set<GeneratedColumn> get $primaryKey => {id};
|
Set<GeneratedColumn> get $primaryKey => {id};
|
||||||
@override
|
@override
|
||||||
List<Set<GeneratedColumn>> get uniqueKeys => [];
|
|
||||||
@override
|
|
||||||
Entrie map(Map<String, dynamic> data, {String? tablePrefix}) {
|
Entrie map(Map<String, dynamic> data, {String? tablePrefix}) {
|
||||||
return Entrie.fromData(data,
|
return Entrie.fromData(data,
|
||||||
prefix: tablePrefix != null ? '$tablePrefix.' : null);
|
prefix: tablePrefix != null ? '$tablePrefix.' : null);
|
||||||
|
|
|
@ -7,14 +7,14 @@ environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
js: ^0.6.3
|
js: ^0.6.4
|
||||||
stream_channel: ^2.1.0
|
stream_channel: ^2.1.0
|
||||||
drift:
|
drift:
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
build_runner: ^2.0.0
|
build_runner: ^2.1.11
|
||||||
build_web_compilers: ^3.0.0
|
build_web_compilers: ^3.2.3
|
||||||
lints: ^1.0.1
|
lints: ^2.0.0
|
||||||
drift_dev:
|
drift_dev:
|
||||||
|
|
||||||
dependency_overrides:
|
dependency_overrides:
|
||||||
|
|
Loading…
Reference in New Issue