Skip to content

Commit 65945ab

Browse files
schmidt-sebastianFeiyang1
authored andcommitted
Disable React Native build (#3244)
* Disable React Native build * Also remove from Firebase build * Rollup cleanup
1 parent 311d4b5 commit 65945ab

File tree

4 files changed

+1
-29
lines changed

4 files changed

+1
-29
lines changed

packages/firebase/src/index.rn.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import '../database';
2323
// TODO(b/158625454): Storage doesn't actually work by default in RN (it uses
2424
// `atob`). We should provide a RN build that works out of the box.
2525
import '../storage';
26-
import '../firestore';
2726

2827
firebase.registerVersion(name, version, 'rn');
2928

packages/firestore/memory/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"description": "A memory-only build of the Cloud Firestore JS SDK.",
44
"main": "../dist/index.memory.node.cjs.js",
55
"main-esm2017": "../dist/index.memory.node.esm2017.js",
6-
"react-native": "../dist/index.memory.rn.esm2017.js",
76
"browser": "../dist/index.memory.cjs.js",
87
"module": "../dist/index.memory.esm.js",
98
"esm2017": "../dist/index.memory.esm2017.js",

packages/firestore/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
},
4444
"main": "dist/index.node.cjs.js",
4545
"main-esm2017": "dist/index.node.esm2017.js",
46-
"react-native": "dist/index.rn.esm2017.js",
4746
"browser": "dist/index.cjs.js",
4847
"module": "dist/index.esm.js",
4948
"esm2017": "dist/index.esm2017.js",

packages/firestore/rollup.config.es2017.js

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -100,31 +100,6 @@ const browserBuilds = [
100100
}
101101
];
102102

103-
const reactNativeBuilds = [
104-
// Persistence build
105-
{
106-
input: 'index.rn.ts',
107-
output: {
108-
file: pkg['react-native'],
109-
format: 'es',
110-
sourcemap: true
111-
},
112-
plugins: browserBuildPlugins,
113-
external: resolveBrowserExterns
114-
},
115-
// Memory-only build
116-
{
117-
input: 'index.rn.memory.ts',
118-
output: {
119-
file: path.resolve('./memory', memoryPkg['react-native']),
120-
format: 'es',
121-
sourcemap: true
122-
},
123-
plugins: browserBuildPlugins,
124-
external: resolveBrowserExterns
125-
}
126-
];
127-
128103
// MARK: Node builds
129104

130105
const nodeBuildPlugins = [
@@ -170,4 +145,4 @@ const nodeBuilds = [
170145
}
171146
];
172147

173-
export default [...browserBuilds, ...reactNativeBuilds, ...nodeBuilds];
148+
export default [...browserBuilds, ...nodeBuilds];

0 commit comments

Comments
 (0)