Skip to content

Commit

Permalink
fix(yet_another_json_isolate): Conditional export now works correctly…
Browse files Browse the repository at this point in the history
… with Dart 3.5+ (#1048)

* fix: change `dart.library.js` -> `dart.library.js_interop`

* fix: conditional export for before dart 3.3

* add: changelog

* Update packages/yet_another_json_isolate/CHANGELOG.md

---------

Co-authored-by: Tyler <[email protected]>
  • Loading branch information
YumNumm and dshukertjr authored Sep 30, 2024
1 parent 4a8b641 commit 6c80a74
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
library yet_another_json_isolate;

export 'src/_isolates_io.dart' if (dart.library.js) 'src/_isolates_web.dart';
export 'src/_isolates_io.dart'
if (dart.library.js_interop) 'src/_isolates_web.dart' // After Dart 3.3
if (dart.library.js) 'src/_isolates_web.dart'; // Before Dart 3.3 (for backwards compatibility)

0 comments on commit 6c80a74

Please sign in to comment.