Skip to content

Commit 6c80a74

Browse files
YumNummdshukertjr
andauthored
fix(yet_another_json_isolate): Conditional export now works correctly 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]>
1 parent 4a8b641 commit 6c80a74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
library yet_another_json_isolate;
22

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

0 commit comments

Comments
 (0)