From d6e66582ee8131bf1728f5e599614c5a708074b2 Mon Sep 17 00:00:00 2001 From: Dennis Kugelmann Date: Sun, 7 Apr 2024 14:34:29 +0000 Subject: [PATCH] fix(wakelock_plus): WASM-compatible conditional imports --- wakelock_plus/lib/wakelock_plus.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wakelock_plus/lib/wakelock_plus.dart b/wakelock_plus/lib/wakelock_plus.dart index b8016dd..22b45a3 100644 --- a/wakelock_plus/lib/wakelock_plus.dart +++ b/wakelock_plus/lib/wakelock_plus.dart @@ -4,7 +4,7 @@ import 'package:wakelock_plus_platform_interface/wakelock_plus_platform_interfac export 'src/wakelock_plus_linux_plugin.dart'; export 'src/wakelock_plus_macos_plugin.dart'; export 'src/wakelock_plus_windows_plugin.dart' - if (dart.library.html) 'src/wakelock_plus_web_plugin.dart'; + if (dart.library.js_interop) 'src/wakelock_plus_web_plugin.dart'; /// The [WakelockPlusPlatformInterface] that is used by [WakelockPlus]. ///