From 375593a30ef8fbac7e0cb4402b2c4c73bb152cb5 Mon Sep 17 00:00:00 2001 From: YumNumm Date: Sat, 28 Sep 2024 23:40:52 +0900 Subject: [PATCH] fix: conditional export for before dart 3.3 --- .../lib/yet_another_json_isolate.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/yet_another_json_isolate/lib/yet_another_json_isolate.dart b/packages/yet_another_json_isolate/lib/yet_another_json_isolate.dart index bbab215c..a5f214ce 100644 --- a/packages/yet_another_json_isolate/lib/yet_another_json_isolate.dart +++ b/packages/yet_another_json_isolate/lib/yet_another_json_isolate.dart @@ -1,3 +1,5 @@ library yet_another_json_isolate; -export 'src/_isolates_io.dart' if (dart.library.js_interop) '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)