Skip to content

Commit

Permalink
Fix exports fields (#7007)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 authored Feb 3, 2023
1 parent 3323f68 commit d071bd1
Show file tree
Hide file tree
Showing 14 changed files with 101 additions and 84 deletions.
17 changes: 17 additions & 0 deletions .changeset/stupid-otters-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
'@firebase/auth': patch
'@firebase/auth-compat': patch
'@firebase/database': patch
'@firebase/database-compat': patch
'firebase': patch
'@firebase/firestore': patch
'@firebase/firestore-compat': patch
'@firebase/functions': patch
'@firebase/functions-compat': patch
'@firebase/rules-unit-testing': patch
'@firebase/storage': patch
'@firebase/template': patch
'@firebase/util': patch
---

Move exports.default fields to always be the last field. This fixes a bug caused in 9.17.0 that prevented some bundlers and frameworks from building.
4 changes: 2 additions & 2 deletions packages/auth-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"require": "./dist/index.node.cjs.js"
},
"esm5": "./dist/index.esm.js",
"default": "./dist/index.esm2017.js",
"browser": {
"require": "./dist/index.cjs.js",
"import": "./dist/index.esm2017.js"
}
},
"default": "./dist/index.esm2017.js"
},
"./package.json": "./package.json"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"default": "./dist/index.webworker.esm5.js"
},
"esm5": "./dist/esm5/index.js",
"default": "./dist/esm2017/index.js",
"browser": {
"require": "./dist/browser-cjs/index.js",
"import": "./dist/esm2017/index.js"
}
},
"default": "./dist/esm2017/index.js"
},
"./cordova": {
"types": "./dist/cordova/index.cordova.d.ts",
Expand All @@ -61,11 +61,11 @@
"default": "./dist/cordova/internal.js"
},
"esm5": "./dist/esm5/internal.js",
"default": "./dist/esm2017/internal.js",
"browser": {
"require": "./dist/browser-cjs/internal.js",
"import": "./dist/esm2017/internal.js"
}
},
"default": "./dist/esm2017/internal.js"
},
"./package.json": "./package.json"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/database-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"require": "./dist/index.js"
},
"esm5": "./dist/index.esm5.js",
"default": "./dist/index.esm2017.js",
"browser": {
"require": "./dist/index.js",
"import": "./dist/index.esm2017.js"
}
},
"default": "./dist/index.esm2017.js"
},
"./standalone": {
"types": "./dist/database-compat/src/index.standalone.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
},
"esm5": "./dist/index.esm5.js",
"standalone": "./dist/index.standalone.js",
"default": "./dist/index.esm2017.js",
"browser": {
"require": "./dist/index.cjs.js",
"import": "./dist/index.esm2017.js"
}
},
"default": "./dist/index.esm2017.js"
},
"./package.json": "./package.json"
},
Expand Down
Loading

0 comments on commit d071bd1

Please sign in to comment.