Skip to content

Commit e646bc9

Browse files
committed
Cleanup build tree a bit
1 parent fcbab14 commit e646bc9

File tree

5 files changed

+12
-16
lines changed

5 files changed

+12
-16
lines changed

packages-exp/auth-exp/demo/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const es5Builds = [
5151
lib: [
5252
// TODO: remove this
5353
"dom",
54-
"es6",
54+
"es2015",
5555
"webworker"
5656
]
5757
}

packages-exp/auth-exp/index.ts renamed to packages-exp/auth-exp/index.browser.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export {
2929
browserSessionPersistence
3030
} from './src/core/persistence/browser';
3131
export { indexedDBLocalPersistence } from './src/core/persistence/indexed_db';
32-
export { getReactNativePersistence } from './src/core/persistence/react_native';
3332

3433
// core/strategies
3534
export {

packages-exp/auth-exp/index.node.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@
1919
* This is the file that people using Node.js will actually import. You should
2020
* only include this file if you have something specific about your
2121
* implementation that mandates having a separate entrypoint. Otherwise you can
22-
* just use index.ts
22+
* just use index.browser.ts
2323
*/
24+
25+
// Core functionality shared by all clients
26+
export * from './index.webworker';

packages-exp/auth-exp/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"description": "TODO",
66
"author": "Firebase <[email protected]> (https://firebase.google.com/)",
77
"main": "dist/index.node.cjs.js",
8-
"browser": "dist/index.cjs.js",
9-
"module": "dist/index.esm.js",
8+
"browser": "dist/index.esm5.js",
9+
"module": "dist/index.esm5.js",
1010
"esm2017": "dist/index.esm2017.js",
11-
"webworker": "dist/index.webworker.js",
11+
"webworker": "dist/index.webworker.esm5.js",
1212
"files": [
1313
"dist"
1414
],

packages-exp/auth-exp/rollup.config.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,8 @@ const es5Builds = [
4848
* Browser Builds
4949
*/
5050
{
51-
input: 'index.ts',
52-
output: [{ file: pkg.browser, format: 'cjs', sourcemap: true }],
53-
plugins: es5BuildPlugins,
54-
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
55-
},
56-
{
57-
input: 'index.ts',
58-
output: [{ file: pkg.module, format: 'es', sourcemap: true }],
51+
input: 'index.browser.ts',
52+
output: [{ file: pkg.browser, format: 'es', sourcemap: true }],
5953
plugins: es5BuildPlugins,
6054
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
6155
},
@@ -74,7 +68,7 @@ const es5Builds = [
7468
lib: [
7569
// Remove dom after we figure out why navigator stuff doesn't exist
7670
"dom",
77-
"es6",
71+
"es2015",
7872
"webworker"
7973
]
8074
}
@@ -114,7 +108,7 @@ const es2017Builds = [
114108
* Browser Builds
115109
*/
116110
{
117-
input: 'index.ts',
111+
input: 'index.browser.ts',
118112
output: {
119113
file: pkg.esm2017,
120114
format: 'es',

0 commit comments

Comments
 (0)