From 65945abe2ccb619dd0997f2029e5965d6d8687c7 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Sat, 20 Jun 2020 15:09:46 -0700 Subject: [PATCH] Disable React Native build (#3244) * Disable React Native build * Also remove from Firebase build * Rollup cleanup --- packages/firebase/src/index.rn.ts | 1 - packages/firestore/memory/package.json | 1 - packages/firestore/package.json | 1 - packages/firestore/rollup.config.es2017.js | 27 +--------------------- 4 files changed, 1 insertion(+), 29 deletions(-) diff --git a/packages/firebase/src/index.rn.ts b/packages/firebase/src/index.rn.ts index c6e3c6f11bc..c89e721d0b6 100644 --- a/packages/firebase/src/index.rn.ts +++ b/packages/firebase/src/index.rn.ts @@ -23,7 +23,6 @@ import '../database'; // TODO(b/158625454): Storage doesn't actually work by default in RN (it uses // `atob`). We should provide a RN build that works out of the box. import '../storage'; -import '../firestore'; firebase.registerVersion(name, version, 'rn'); diff --git a/packages/firestore/memory/package.json b/packages/firestore/memory/package.json index 04a27eb839a..ac0df500a26 100644 --- a/packages/firestore/memory/package.json +++ b/packages/firestore/memory/package.json @@ -3,7 +3,6 @@ "description": "A memory-only build of the Cloud Firestore JS SDK.", "main": "../dist/index.memory.node.cjs.js", "main-esm2017": "../dist/index.memory.node.esm2017.js", - "react-native": "../dist/index.memory.rn.esm2017.js", "browser": "../dist/index.memory.cjs.js", "module": "../dist/index.memory.esm.js", "esm2017": "../dist/index.memory.esm2017.js", diff --git a/packages/firestore/package.json b/packages/firestore/package.json index 42d4a637f84..aecc3f549cc 100644 --- a/packages/firestore/package.json +++ b/packages/firestore/package.json @@ -43,7 +43,6 @@ }, "main": "dist/index.node.cjs.js", "main-esm2017": "dist/index.node.esm2017.js", - "react-native": "dist/index.rn.esm2017.js", "browser": "dist/index.cjs.js", "module": "dist/index.esm.js", "esm2017": "dist/index.esm2017.js", diff --git a/packages/firestore/rollup.config.es2017.js b/packages/firestore/rollup.config.es2017.js index 9ef6e4fd326..fcabdabe0b1 100644 --- a/packages/firestore/rollup.config.es2017.js +++ b/packages/firestore/rollup.config.es2017.js @@ -100,31 +100,6 @@ const browserBuilds = [ } ]; -const reactNativeBuilds = [ - // Persistence build - { - input: 'index.rn.ts', - output: { - file: pkg['react-native'], - format: 'es', - sourcemap: true - }, - plugins: browserBuildPlugins, - external: resolveBrowserExterns - }, - // Memory-only build - { - input: 'index.rn.memory.ts', - output: { - file: path.resolve('./memory', memoryPkg['react-native']), - format: 'es', - sourcemap: true - }, - plugins: browserBuildPlugins, - external: resolveBrowserExterns - } -]; - // MARK: Node builds const nodeBuildPlugins = [ @@ -170,4 +145,4 @@ const nodeBuilds = [ } ]; -export default [...browserBuilds, ...reactNativeBuilds, ...nodeBuilds]; +export default [...browserBuilds, ...nodeBuilds];