Skip to content

Commit 3986346

Browse files
committed
fix(core): use non webpack require
1 parent 9c989f6 commit 3986346

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/firebase-core/index.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { IFirebaseOptions, FirebaseConfig } from './common';
22
import { knownFolders, Utils, File } from '@nativescript/core';
33
export * from './utils';
4-
4+
declare const __non_webpack_require__;
55
export class FirebaseError extends Error {
66
#native: java.lang.Exception;
77
static fromNative(native: java.lang.Exception, message?: string) {
@@ -270,7 +270,7 @@ export class Firebase {
270270
if (path.startsWith('~/')) {
271271
path = knownFolders.currentApp().path + '/' + path.replace('~/', '');
272272
}
273-
json = require(path);
273+
json = __non_webpack_require__(path);
274274
}
275275

276276

0 commit comments

Comments
 (0)