Skip to content

Commit 6710e99

Browse files
fix(web): indirect dart:js_interop conditional import to fix dart2js build issue (#12925)
Co-authored-by: Russell Wheatley <[email protected]>
1 parent 86ae6fe commit 6710e99

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/_flutterfire_internals/lib/_flutterfire_internals.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import 'package:firebase_core/firebase_core.dart';
1616
import 'src/interop_shimmer.dart'
1717
if (dart.library.js_interop) 'package:firebase_core_web/firebase_core_web_interop.dart'
1818
as core_interop;
19-
import 'src/interop_shimmer.dart' if (dart.library.js_interop) 'dart:js_interop'
20-
as js_interop;
19+
import 'src/interop_shimmer.dart'
20+
if (dart.library.js_interop) 'src/js_interop.dart' as js_interop;
2121

2222
export 'src/exception.dart';
2323

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright 2024, the Chromium project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
5+
/// This is a stub file to work around odd dart web compiler builder issues.
6+
export 'dart:js_interop';

0 commit comments

Comments
 (0)