diff --git a/e2e/karma.conf.js b/e2e/karma.conf.js index 84a81e303bb..eb70513a330 100644 --- a/e2e/karma.conf.js +++ b/e2e/karma.conf.js @@ -58,7 +58,7 @@ module.exports = function (config) { directories: ['./node_modules'], alias: { '@firebase/messaging/sw': - 'node_modules/@firebase/messaging/dist/index.sw.esm2017.js', + 'node_modules/@firebase/messaging/dist/index.sw.esm2017.mjs', 'idb': 'node_modules/idb/build/index.js' } }, diff --git a/packages/analytics-compat/package.json b/packages/analytics-compat/package.json index d976d5e48fb..0242e249783 100644 --- a/packages/analytics-compat/package.json +++ b/packages/analytics-compat/package.json @@ -4,15 +4,15 @@ "description": "", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "browser": "dist/esm/index.esm2017.js", - "module": "dist/esm/index.esm2017.js", - "esm5": "dist/esm/index.esm.js", + "browser": "dist/esm/index.esm2017.mjs", + "module": "dist/esm/index.esm2017.mjs", + "esm5": "dist/esm/index.esm.mjs", "exports": { ".": { "types": "./dist/src/index.d.ts", "require": "./dist/index.cjs.js", - "esm5": "./dist/esm/index.esm.js", - "default": "./dist/esm/index.esm2017.js" + "esm5": "./dist/esm/index.esm.mjs", + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/analytics/package.json b/packages/analytics/package.json index b8cd3920598..116ad30f232 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -4,15 +4,15 @@ "description": "A analytics package for new firebase packages", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "browser": "dist/esm/index.esm2017.js", - "module": "dist/esm/index.esm2017.js", - "esm5": "dist/esm/index.esm.js", + "browser": "dist/esm/index.esm2017.mjs", + "module": "dist/esm/index.esm2017.mjs", + "esm5": "dist/esm/index.esm.mjs", "exports": { ".": { "types": "./dist/analytics-public.d.ts", "require": "./dist/index.cjs.js", - "esm5": "./dist/esm/index.esm.js", - "default": "./dist/esm/index.esm2017.js" + "esm5": "./dist/esm/index.esm.mjs", + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/app-check-compat/package.json b/packages/app-check-compat/package.json index 3e582602587..5879aa61e29 100644 --- a/packages/app-check-compat/package.json +++ b/packages/app-check-compat/package.json @@ -4,15 +4,15 @@ "description": "A compat App Check package for new firebase packages", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "browser": "dist/esm/index.esm2017.js", - "module": "dist/esm/index.esm2017.js", - "esm5": "dist/esm/index.esm.js", + "browser": "dist/esm/index.esm2017.mjs", + "module": "dist/esm/index.esm2017.mjs", + "esm5": "dist/esm/index.esm.mjs", "exports": { ".": { "types": "./dist/src/index.d.ts", "require": "./dist/index.cjs.js", - "esm5": "./dist/esm/index.esm.js", - "default": "./dist/esm/index.esm2017.js" + "esm5": "./dist/esm/index.esm.mjs", + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/app-check/package.json b/packages/app-check/package.json index eec128e700a..5e1f684fb8d 100644 --- a/packages/app-check/package.json +++ b/packages/app-check/package.json @@ -4,15 +4,15 @@ "description": "The App Check component of the Firebase JS SDK", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "browser": "dist/esm/index.esm2017.js", - "module": "dist/esm/index.esm2017.js", - "esm5": "dist/esm/index.esm.js", + "browser": "dist/esm/index.esm2017.mjs", + "module": "dist/esm/index.esm2017.mjs", + "esm5": "dist/esm/index.esm.mjs", "exports": { ".": { "types": "./dist/app-check-public.d.ts", "require": "./dist/index.cjs.js", - "esm5": "./dist/esm/index.esm.js", - "default": "./dist/esm/index.esm2017.js" + "esm5": "./dist/esm/index.esm.mjs", + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/app-compat/package.json b/packages/app-compat/package.json index 0b0d4f65d38..22fd86062ee 100644 --- a/packages/app-compat/package.json +++ b/packages/app-compat/package.json @@ -4,8 +4,8 @@ "description": "The primary entrypoint to the Firebase JS SDK", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "browser": "dist/esm/index.esm2017.js", - "module": "dist/esm/index.esm2017.js", + "browser": "dist/esm/index.esm2017.mjs", + "module": "dist/esm/index.esm2017.mjs", "esm5": "dist/esm/index.esm5.js", "lite": "dist/index.lite.js", "liteesm5": "dist/index.lite.esm5.js", @@ -16,7 +16,7 @@ "esm5": "./dist/esm/index.esm5.js", "lite": "./dist/index.lite.js", "liteesm5": "./dist/index.lite.esm5.js", - "default": "./dist/esm/index.esm2017.js" + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/app/package.json b/packages/app/package.json index ee0cffdb481..b8d9b677760 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -4,15 +4,15 @@ "description": "The primary entrypoint to the Firebase JS SDK", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "browser": "dist/esm/index.esm2017.js", - "module": "dist/esm/index.esm2017.js", + "browser": "dist/esm/index.esm2017.mjs", + "module": "dist/esm/index.esm2017.mjs", "esm5": "dist/esm/index.esm5.js", "exports": { ".": { "types": "./dist/app-public.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm5.js", - "default": "./dist/esm/index.esm2017.js" + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/auth-compat/package.json b/packages/auth-compat/package.json index b1c0cf28c73..537a7900bac 100644 --- a/packages/auth-compat/package.json +++ b/packages/auth-compat/package.json @@ -4,19 +4,19 @@ "description": "FirebaseAuth compatibility package that uses API style compatible with Firebase@8 and prior versions", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.node.cjs.js", - "browser": "dist/index.esm2017.js", - "module": "dist/index.esm2017.js", - "esm5": "dist/index.esm.js", + "browser": "dist/index.esm2017.mjs", + "module": "dist/index.esm2017.mjs", + "esm5": "dist/index.esm.mjs", "exports": { ".": { "types": "./dist/auth-compat/index.d.ts", "node": { "types": "./dist/auth-compat/index.node.d.ts", - "import": "./dist/esm/index.node.esm.js", + "import": "./dist/esm/index.node.esm.mjs", "require": "./dist/index.node.cjs.js" }, - "esm5": "./dist/index.esm.js", - "default": "./dist/index.esm2017.js" + "esm5": "./dist/index.esm.mjs", + "default": "./dist/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/component/package.json b/packages/component/package.json index 41360f48dc8..37d21d26de4 100644 --- a/packages/component/package.json +++ b/packages/component/package.json @@ -4,15 +4,15 @@ "description": "Firebase Component Platform", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "browser": "dist/esm/index.esm2017.js", - "module": "dist/esm/index.esm2017.js", + "browser": "dist/esm/index.esm2017.mjs", + "module": "dist/esm/index.esm2017.mjs", "esm5": "dist/esm/index.esm5.js", "exports": { ".": { "types": "./dist/index.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm5.js", - "default": "./dist/esm/index.esm2017.js" + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/database-compat/package.json b/packages/database-compat/package.json index da4605e91c0..b048af4f19f 100644 --- a/packages/database-compat/package.json +++ b/packages/database-compat/package.json @@ -4,8 +4,8 @@ "description": "The Realtime Database component of the Firebase JS SDK.", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.js", - "browser": "dist/index.esm2017.js", - "module": "dist/index.esm2017.js", + "browser": "dist/index.esm2017.mjs", + "module": "dist/index.esm2017.mjs", "esm5": "dist/index.esm5.js", "license": "Apache-2.0", "typings": "dist/database-compat/src/index.d.ts", @@ -22,7 +22,7 @@ "require": "./dist/index.js" }, "esm5": "./dist/index.esm5.js", - "default": "./dist/index.esm2017.js" + "default": "./dist/index.esm2017.mjs" }, "./standalone": { "types": "./dist/database-compat/src/index.standalone.d.ts", @@ -63,4 +63,4 @@ "bugs": { "url": "https://github.com/firebase/firebase-js-sdk/issues" } -} \ No newline at end of file +} diff --git a/packages/database/package.json b/packages/database/package.json index e8338c79ba2..6d113e8318a 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -4,20 +4,20 @@ "description": "", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.node.cjs.js", - "browser": "dist/index.esm2017.js", - "module": "dist/index.esm2017.js", + "browser": "dist/index.esm2017.mjs", + "module": "dist/index.esm2017.mjs", "esm5": "dist/index.esm5.js", "standalone": "dist/index.standalone.js", "exports": { ".": { "types": "./dist/public.d.ts", "node": { - "import": "./dist/node-esm/index.node.esm.js", + "import": "./dist/node-esm/index.node.esm.mjs", "require": "./dist/index.node.cjs.js" }, "esm5": "./dist/index.esm5.js", "standalone": "./dist/index.standalone.js", - "default": "./dist/index.esm2017.js" + "default": "./dist/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/firebase/analytics/package.json b/packages/firebase/analytics/package.json index d0501cc8be8..06975fd9405 100644 --- a/packages/firebase/analytics/package.json +++ b/packages/firebase/analytics/package.json @@ -1,7 +1,7 @@ { "name": "firebase/analytics", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/analytics/index.d.ts" } diff --git a/packages/firebase/app-check/package.json b/packages/firebase/app-check/package.json index 5d51c5bc592..63434d10dee 100644 --- a/packages/firebase/app-check/package.json +++ b/packages/firebase/app-check/package.json @@ -1,7 +1,7 @@ { "name": "firebase/app-check", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/app-check/index.d.ts" } diff --git a/packages/firebase/app/package.json b/packages/firebase/app/package.json index c9cc1a6a7d3..b638b9beacb 100644 --- a/packages/firebase/app/package.json +++ b/packages/firebase/app/package.json @@ -1,7 +1,7 @@ { "name": "firebase/app", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/app/index.d.ts" } diff --git a/packages/firebase/auth/cordova/package.json b/packages/firebase/auth/cordova/package.json index b792bc25bd5..25c3895671f 100644 --- a/packages/firebase/auth/cordova/package.json +++ b/packages/firebase/auth/cordova/package.json @@ -1,7 +1,7 @@ { "name": "firebase/auth/cordova", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/auth/cordova/index.d.ts" } diff --git a/packages/firebase/auth/package.json b/packages/firebase/auth/package.json index 384fcfd8dc9..86614b19668 100644 --- a/packages/firebase/auth/package.json +++ b/packages/firebase/auth/package.json @@ -1,7 +1,7 @@ { "name": "firebase/auth", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/auth/index.d.ts" } diff --git a/packages/firebase/auth/react-native/package.json b/packages/firebase/auth/react-native/package.json index 8915caea090..2654b3cc2e5 100644 --- a/packages/firebase/auth/react-native/package.json +++ b/packages/firebase/auth/react-native/package.json @@ -1,7 +1,7 @@ { "name": "firebase/auth/react-native", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/auth/react-native/index.d.ts" } diff --git a/packages/firebase/compat/analytics/package.json b/packages/firebase/compat/analytics/package.json index fe842de6da8..e9ead6cba6d 100644 --- a/packages/firebase/compat/analytics/package.json +++ b/packages/firebase/compat/analytics/package.json @@ -1,7 +1,7 @@ { "name": "firebase/compat/analytics", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/compat/analytics/index.d.ts" } diff --git a/packages/firebase/compat/app-check/package.json b/packages/firebase/compat/app-check/package.json index 5b6fdb15071..6c346fcaf1d 100644 --- a/packages/firebase/compat/app-check/package.json +++ b/packages/firebase/compat/app-check/package.json @@ -1,7 +1,7 @@ { "name": "firebase/compat/app-check", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/compat/app-check/index.d.ts" } diff --git a/packages/firebase/compat/app/package.json b/packages/firebase/compat/app/package.json index bf541c1058b..f2b8e85155e 100644 --- a/packages/firebase/compat/app/package.json +++ b/packages/firebase/compat/app/package.json @@ -1,7 +1,7 @@ { "name": "firebase/compat/app", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "../index.d.ts" } diff --git a/packages/firebase/compat/auth/package.json b/packages/firebase/compat/auth/package.json index 1c12853ef12..5db5d221cdb 100644 --- a/packages/firebase/compat/auth/package.json +++ b/packages/firebase/compat/auth/package.json @@ -1,7 +1,7 @@ { "name": "firebase/compat/auth", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/compat/auth/index.d.ts" } diff --git a/packages/firebase/compat/database/package.json b/packages/firebase/compat/database/package.json index a0faa894616..ce2d37514fb 100644 --- a/packages/firebase/compat/database/package.json +++ b/packages/firebase/compat/database/package.json @@ -1,7 +1,7 @@ { "name": "firebase/compat/database", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/compat/database/index.d.ts" } diff --git a/packages/firebase/compat/firestore/package.json b/packages/firebase/compat/firestore/package.json index 2bc475429e6..60e01c16c68 100644 --- a/packages/firebase/compat/firestore/package.json +++ b/packages/firebase/compat/firestore/package.json @@ -1,7 +1,7 @@ { "name": "firebase/compat/firestore", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/compat/firestore/index.d.ts" } diff --git a/packages/firebase/compat/functions/package.json b/packages/firebase/compat/functions/package.json index dbd111e8153..7f4ee5b17fc 100644 --- a/packages/firebase/compat/functions/package.json +++ b/packages/firebase/compat/functions/package.json @@ -1,7 +1,7 @@ { "name": "firebase/compat/functions", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/compat/functions/index.d.ts" } diff --git a/packages/firebase/compat/installations/package.json b/packages/firebase/compat/installations/package.json index 77c8ff7222d..0d3d47a9bc2 100644 --- a/packages/firebase/compat/installations/package.json +++ b/packages/firebase/compat/installations/package.json @@ -1,7 +1,7 @@ { "name": "firebase/compat/installations", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/compat/installations/index.d.ts" } diff --git a/packages/firebase/compat/messaging/package.json b/packages/firebase/compat/messaging/package.json index ff4f2d18465..0a863359851 100644 --- a/packages/firebase/compat/messaging/package.json +++ b/packages/firebase/compat/messaging/package.json @@ -1,7 +1,7 @@ { "name": "firebase/compat/messaging", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/compat/messaging/index.d.ts" } diff --git a/packages/firebase/compat/package.json b/packages/firebase/compat/package.json index 2638a3ecbfd..4abc9331076 100644 --- a/packages/firebase/compat/package.json +++ b/packages/firebase/compat/package.json @@ -1,8 +1,8 @@ { "name": "firebase/compat", "main": "dist/index.node.cjs", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "react-native": "dist/index.rn.cjs.js", "typings": "index.d.ts", "components": [ diff --git a/packages/firebase/compat/performance/package.json b/packages/firebase/compat/performance/package.json index 0ceb7eb1f5c..c8db1002e31 100644 --- a/packages/firebase/compat/performance/package.json +++ b/packages/firebase/compat/performance/package.json @@ -1,7 +1,7 @@ { "name": "firebase/compat/performance", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/compat/performance/index.d.ts" } diff --git a/packages/firebase/compat/remote-config/package.json b/packages/firebase/compat/remote-config/package.json index 6a32cebd736..b8882888496 100644 --- a/packages/firebase/compat/remote-config/package.json +++ b/packages/firebase/compat/remote-config/package.json @@ -1,7 +1,7 @@ { "name": "firebase/compat/remote-config", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/compat/remote-config/index.d.ts" } diff --git a/packages/firebase/compat/storage/package.json b/packages/firebase/compat/storage/package.json index d4e8b3e4bf8..02a535d9187 100644 --- a/packages/firebase/compat/storage/package.json +++ b/packages/firebase/compat/storage/package.json @@ -1,7 +1,7 @@ { "name": "firebase/compat/storage", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/compat/storage/index.d.ts" } diff --git a/packages/firebase/database/package.json b/packages/firebase/database/package.json index cf80da8d0d6..8e0a60a780d 100644 --- a/packages/firebase/database/package.json +++ b/packages/firebase/database/package.json @@ -1,7 +1,7 @@ { "name": "firebase/database", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/database/index.d.ts" } diff --git a/packages/firebase/firestore/lite/package.json b/packages/firebase/firestore/lite/package.json index 92f39a8b93c..76980ff2414 100644 --- a/packages/firebase/firestore/lite/package.json +++ b/packages/firebase/firestore/lite/package.json @@ -1,7 +1,7 @@ { "name": "firebase/firestore/lite", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/firestore/lite/index.d.ts" } diff --git a/packages/firebase/firestore/package.json b/packages/firebase/firestore/package.json index 0a6839340c4..ee869d8f5d2 100644 --- a/packages/firebase/firestore/package.json +++ b/packages/firebase/firestore/package.json @@ -1,7 +1,7 @@ { "name": "firebase/firestore", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/firestore/index.d.ts" } diff --git a/packages/firebase/functions/package.json b/packages/firebase/functions/package.json index 134fad93515..67c98b95949 100644 --- a/packages/firebase/functions/package.json +++ b/packages/firebase/functions/package.json @@ -1,7 +1,7 @@ { "name": "firebase/functions", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/functions/index.d.ts" } diff --git a/packages/firebase/installations/package.json b/packages/firebase/installations/package.json index 6fa8cf981a1..bc66807dde8 100644 --- a/packages/firebase/installations/package.json +++ b/packages/firebase/installations/package.json @@ -1,7 +1,7 @@ { "name": "firebase/installations", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/installations/index.d.ts" } diff --git a/packages/firebase/messaging/package.json b/packages/firebase/messaging/package.json index 4ff72108102..2f4f1a5da66 100644 --- a/packages/firebase/messaging/package.json +++ b/packages/firebase/messaging/package.json @@ -1,7 +1,7 @@ { "name": "firebase/messaging", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/messaging/index.d.ts" } diff --git a/packages/firebase/messaging/sw/package.json b/packages/firebase/messaging/sw/package.json index f42cc1035ff..e0f1604844b 100644 --- a/packages/firebase/messaging/sw/package.json +++ b/packages/firebase/messaging/sw/package.json @@ -1,7 +1,7 @@ { "name": "firebase/messaging/sw", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/messaging/sw/index.d.ts" } diff --git a/packages/firebase/package.json b/packages/firebase/package.json index b3caac31c14..60f542ace01 100644 --- a/packages/firebase/package.json +++ b/packages/firebase/package.json @@ -29,7 +29,7 @@ "require": "./analytics/dist/index.cjs.js", "import": "./analytics/dist/index.mjs" }, - "default": "./analytics/dist/index.esm.js" + "default": "./analytics/dist/index.esm.mjs" }, "./app": { "types": "./app/dist/app/index.d.ts", @@ -37,7 +37,7 @@ "require": "./app/dist/index.cjs.js", "import": "./app/dist/index.mjs" }, - "default": "./app/dist/index.esm.js" + "default": "./app/dist/index.esm.mjs" }, "./app-check": { "types": "./app-check/dist/app-check/index.d.ts", @@ -45,7 +45,7 @@ "require": "./app-check/dist/index.cjs.js", "import": "./app-check/dist/index.mjs" }, - "default": "./app-check/dist/index.esm.js" + "default": "./app-check/dist/index.esm.mjs" }, "./auth": { "types": "./auth/dist/auth/index.d.ts", @@ -53,7 +53,7 @@ "require": "./auth/dist/index.cjs.js", "import": "./auth/dist/index.mjs" }, - "default": "./auth/dist/index.esm.js" + "default": "./auth/dist/index.esm.mjs" }, "./auth/cordova": { "types": "./auth/cordova/dist/auth/cordova/index.d.ts", @@ -61,7 +61,7 @@ "require": "./auth/cordova/dist/index.cjs.js", "import": "./auth/cordova/dist/index.mjs" }, - "default": "./auth/cordova/dist/index.esm.js" + "default": "./auth/cordova/dist/index.esm.mjs" }, "./auth/react-native": { "types": "./auth/react-native/dist/auth/react-native/index.d.ts", @@ -69,7 +69,7 @@ "require": "./auth/react-native/dist/index.cjs.js", "import": "./auth/react-native/dist/index.mjs" }, - "default": "./auth/react-native/dist/index.esm.js" + "default": "./auth/react-native/dist/index.esm.mjs" }, "./database": { "types": "./database/dist/database/index.d.ts", @@ -77,7 +77,7 @@ "require": "./database/dist/index.cjs.js", "import": "./database/dist/index.mjs" }, - "default": "./database/dist/index.esm.js" + "default": "./database/dist/index.esm.mjs" }, "./firestore": { "types": "./firestore/dist/firestore/index.d.ts", @@ -85,7 +85,7 @@ "require": "./firestore/dist/index.cjs.js", "import": "./firestore/dist/index.mjs" }, - "default": "./firestore/dist/index.esm.js" + "default": "./firestore/dist/index.esm.mjs" }, "./firestore/lite": { "types": "./firestore/lite/dist/firestore/lite/index.d.ts", @@ -93,7 +93,7 @@ "require": "./firestore/lite/dist/index.cjs.js", "import": "./firestore/lite/dist/index.mjs" }, - "default": "./firestore/lite/dist/index.esm.js" + "default": "./firestore/lite/dist/index.esm.mjs" }, "./functions": { "types": "./functions/dist/functions/index.d.ts", @@ -101,7 +101,7 @@ "require": "./functions/dist/index.cjs.js", "import": "./functions/dist/index.mjs" }, - "default": "./functions/dist/index.esm.js" + "default": "./functions/dist/index.esm.mjs" }, "./installations": { "types": "./installations/dist/installations/index.d.ts", @@ -109,7 +109,7 @@ "require": "./installations/dist/index.cjs.js", "import": "./installations/dist/index.mjs" }, - "default": "./installations/dist/index.esm.js" + "default": "./installations/dist/index.esm.mjs" }, "./messaging": { "types": "./messaging/dist/messaging/index.d.ts", @@ -117,7 +117,7 @@ "require": "./messaging/dist/index.cjs.js", "import": "./messaging/dist/index.mjs" }, - "default": "./messaging/dist/index.esm.js" + "default": "./messaging/dist/index.esm.mjs" }, "./messaging/sw": { "types": "./messaging/sw/dist/messaging/sw/index.d.ts", @@ -125,7 +125,7 @@ "require": "./messaging/sw/dist/index.cjs.js", "import": "./messaging/sw/dist/index.mjs" }, - "default": "./messaging/sw/dist/index.esm.js" + "default": "./messaging/sw/dist/index.esm.mjs" }, "./performance": { "types": "./performance/dist/performance/index.d.ts", @@ -133,7 +133,7 @@ "require": "./performance/dist/index.cjs.js", "import": "./performance/dist/index.mjs" }, - "default": "./performance/dist/index.esm.js" + "default": "./performance/dist/index.esm.mjs" }, "./remote-config": { "types": "./remote-config/dist/remote-config/index.d.ts", @@ -141,7 +141,7 @@ "require": "./remote-config/dist/index.cjs.js", "import": "./remote-config/dist/index.mjs" }, - "default": "./remote-config/dist/index.esm.js" + "default": "./remote-config/dist/index.esm.mjs" }, "./storage": { "types": "./storage/dist/storage/index.d.ts", @@ -149,7 +149,7 @@ "require": "./storage/dist/index.cjs.js", "import": "./storage/dist/index.mjs" }, - "default": "./storage/dist/index.esm.js" + "default": "./storage/dist/index.esm.mjs" }, "./compat/analytics": { "types": "./compat/analytics/dist/compat/analytics/index.d.ts", @@ -157,7 +157,7 @@ "require": "./compat/analytics/dist/index.cjs.js", "import": "./compat/analytics/dist/index.mjs" }, - "default": "./compat/analytics/dist/index.esm.js" + "default": "./compat/analytics/dist/index.esm.mjs" }, "./compat/app": { "types": "./compat/app/dist/compat/app/index.d.ts", @@ -165,7 +165,7 @@ "require": "./compat/app/dist/index.cjs.js", "import": "./compat/app/dist/index.mjs" }, - "default": "./compat/app/dist/index.esm.js" + "default": "./compat/app/dist/index.esm.mjs" }, "./compat/app-check": { "types": "./compat/app-check/dist/compat/app-check/index.d.ts", @@ -173,7 +173,7 @@ "require": "./compat/app-check/dist/index.cjs.js", "import": "./compat/app-check/dist/index.mjs" }, - "default": "./compat/app-check/dist/index.esm.js" + "default": "./compat/app-check/dist/index.esm.mjs" }, "./compat/auth": { "types": "./compat/auth/dist/compat/auth/index.d.ts", @@ -181,7 +181,7 @@ "require": "./compat/auth/dist/index.cjs.js", "import": "./compat/auth/dist/index.mjs" }, - "default": "./compat/auth/dist/index.esm.js" + "default": "./compat/auth/dist/index.esm.mjs" }, "./compat/database": { "types": "./compat/database/dist/compat/database/index.d.ts", @@ -189,7 +189,7 @@ "require": "./compat/database/dist/index.cjs.js", "import": "./compat/database/dist/index.mjs" }, - "default": "./compat/database/dist/index.esm.js" + "default": "./compat/database/dist/index.esm.mjs" }, "./compat/firestore": { "types": "./compat/firestore/dist/compat/firestore/index.d.ts", @@ -197,7 +197,7 @@ "require": "./compat/firestore/dist/index.cjs.js", "import": "./compat/firestore/dist/index.mjs" }, - "default": "./compat/firestore/dist/index.esm.js" + "default": "./compat/firestore/dist/index.esm.mjs" }, "./compat/functions": { "types": "./compat/functions/dist/compat/functions/index.d.ts", @@ -205,7 +205,7 @@ "require": "./compat/functions/dist/index.cjs.js", "import": "./compat/functions/dist/index.mjs" }, - "default": "./compat/functions/dist/index.esm.js" + "default": "./compat/functions/dist/index.esm.mjs" }, "./compat/installations": { "types": "./compat/installations/dist/compat/installations/index.d.ts", @@ -213,7 +213,7 @@ "require": "./compat/installations/dist/index.cjs.js", "import": "./compat/installations/dist/index.mjs" }, - "default": "./compat/installations/dist/index.esm.js" + "default": "./compat/installations/dist/index.esm.mjs" }, "./compat/messaging": { "types": "./compat/messaging/dist/compat/messaging/index.d.ts", @@ -221,7 +221,7 @@ "require": "./compat/messaging/dist/index.cjs.js", "import": "./compat/messaging/dist/index.mjs" }, - "default": "./compat/messaging/dist/index.esm.js" + "default": "./compat/messaging/dist/index.esm.mjs" }, "./compat/performance": { "types": "./compat/performance/dist/compat/performance/index.d.ts", @@ -229,7 +229,7 @@ "require": "./compat/performance/dist/index.cjs.js", "import": "./compat/performance/dist/index.mjs" }, - "default": "./compat/performance/dist/index.esm.js" + "default": "./compat/performance/dist/index.esm.mjs" }, "./compat/remote-config": { "types": "./compat/remote-config/dist/compat/remote-config/index.d.ts", @@ -237,7 +237,7 @@ "require": "./compat/remote-config/dist/index.cjs.js", "import": "./compat/remote-config/dist/index.mjs" }, - "default": "./compat/remote-config/dist/index.esm.js" + "default": "./compat/remote-config/dist/index.esm.mjs" }, "./compat/storage": { "types": "./compat/storage/dist/compat/storage/index.d.ts", @@ -245,7 +245,7 @@ "require": "./compat/storage/dist/index.cjs.js", "import": "./compat/storage/dist/index.mjs" }, - "default": "./compat/storage/dist/index.esm.js" + "default": "./compat/storage/dist/index.esm.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/firebase/performance/package.json b/packages/firebase/performance/package.json index dfeb37708aa..9a6590ee94f 100644 --- a/packages/firebase/performance/package.json +++ b/packages/firebase/performance/package.json @@ -1,7 +1,7 @@ { "name": "firebase/performance", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/performance/index.d.ts" } diff --git a/packages/firebase/remote-config/package.json b/packages/firebase/remote-config/package.json index f4f033a4d9d..c37f5d9632e 100644 --- a/packages/firebase/remote-config/package.json +++ b/packages/firebase/remote-config/package.json @@ -1,7 +1,7 @@ { "name": "firebase/remote-config", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/remote-config/index.d.ts" } diff --git a/packages/firebase/storage/package.json b/packages/firebase/storage/package.json index a524dec061f..c1fc2b9a377 100644 --- a/packages/firebase/storage/package.json +++ b/packages/firebase/storage/package.json @@ -1,7 +1,7 @@ { "name": "firebase/storage", "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", + "browser": "dist/index.esm.mjs", + "module": "dist/index.esm.mjs", "typings": "dist/storage/index.d.ts" } diff --git a/packages/firestore-compat/package.json b/packages/firestore-compat/package.json index db4152b5dde..ac2e54c74bc 100644 --- a/packages/firestore-compat/package.json +++ b/packages/firestore-compat/package.json @@ -5,19 +5,19 @@ "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.node.cjs.js", "react-native": "dist/index.rn.js", - "browser": "dist/index.esm2017.js", - "module": "dist/index.esm2017.js", + "browser": "dist/index.esm2017.mjs", + "module": "dist/index.esm2017.mjs", "esm5": "dist/index.esm5.js", "exports": { ".": { "types": "./dist/src/index.d.ts", "node": { - "import": "./dist/node-esm/index.node.esm.js", + "import": "./dist/node-esm/index.node.esm.mjs", "require": "./dist/index.node.cjs.js" }, "react-native": "./dist/index.rn.js", "esm5": "./dist/index.esm5.js", - "default": "./dist/index.esm2017.js" + "default": "./dist/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/firestore/lite/package.json b/packages/firestore/lite/package.json index dbef6c78d6c..56929a8aa0d 100644 --- a/packages/firestore/lite/package.json +++ b/packages/firestore/lite/package.json @@ -3,9 +3,9 @@ "description": "A lite version of the Firestore SDK", "main": "../dist/lite/index.node.cjs.js", "main-esm": "../dist/lite/index.node.mjs", - "module": "../dist/lite/index.browser.esm2017.js", - "browser": "../dist/lite/index.browser.esm2017.js", - "react-native": "../dist/lite/index.rn.esm2017.js", + "module": "../dist/lite/index.browser.esm2017.mjs", + "browser": "../dist/lite/index.browser.esm2017.mjs", + "react-native": "../dist/lite/index.rn.esm2017.mjs", "esm5": "../dist/lite/index.browser.esm5.js", "typings": "../dist/lite/index.d.ts", "private": true diff --git a/packages/firestore/package.json b/packages/firestore/package.json index 426ea05b47e..be654e1982c 100644 --- a/packages/firestore/package.json +++ b/packages/firestore/package.json @@ -54,7 +54,7 @@ }, "react-native": "./dist/index.rn.js", "esm5": "./dist/index.esm5.js", - "default": "./dist/index.esm2017.js" + "default": "./dist/index.esm2017.mjs" }, "./lite": { "types": "./dist/lite/index.d.ts", @@ -62,17 +62,17 @@ "require": "./dist/lite/index.node.cjs.js", "import": "./dist/lite/index.node.mjs" }, - "react-native": "./dist/lite/index.rn.esm2017.js", + "react-native": "./dist/lite/index.rn.esm2017.mjs", "esm5": "./dist/lite/index.browser.esm5.js", - "default": "./dist/lite/index.browser.esm2017.js" + "default": "./dist/lite/index.browser.esm2017.mjs" }, "./package.json": "./package.json" }, "main": "dist/index.node.cjs.js", "main-esm": "dist/index.node.mjs", "react-native": "dist/index.rn.js", - "browser": "dist/index.esm2017.js", - "module": "dist/index.esm2017.js", + "browser": "dist/index.esm2017.mjs", + "module": "dist/index.esm2017.mjs", "esm5": "dist/index.esm5.js", "license": "Apache-2.0", "files": [ diff --git a/packages/firestore/rollup.config.debug.js b/packages/firestore/rollup.config.debug.js index a8823820d1d..8b54470d388 100644 --- a/packages/firestore/rollup.config.debug.js +++ b/packages/firestore/rollup.config.debug.js @@ -25,9 +25,9 @@ import pkg from './package.json'; // This rollup configuration creates a single non-minified build for browser // testing. You can test code changes by running `yarn build:debug`. This -// creates the file "dist/index.esm2017.js" that you can use in your sample +// creates the file "dist/index.esm2017.mjs" that you can use in your sample // app as a replacement for -// "node_modules/@firebase/firestore/dist/index.esm2017.js". +// "node_modules/@firebase/firestore/dist/index.esm2017.mjs". const browserPlugins = function () { return [ diff --git a/packages/functions-compat/package.json b/packages/functions-compat/package.json index 7db85923786..31172781a9f 100644 --- a/packages/functions-compat/package.json +++ b/packages/functions-compat/package.json @@ -4,18 +4,18 @@ "description": "", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.node.cjs.js", - "browser": "dist/index.esm2017.js", - "module": "dist/index.esm2017.js", + "browser": "dist/index.esm2017.mjs", + "module": "dist/index.esm2017.mjs", "esm5": "dist/index.esm5.js", "exports": { ".": { "types": "./dist/src/index.d.ts", "node": { - "import": "./dist/node-esm/index.node.esm.js", + "import": "./dist/node-esm/index.node.esm.mjs", "require": "./dist/index.node.cjs.js" }, "esm5": "./dist/index.esm5.js", - "default": "./dist/index.esm2017.js" + "default": "./dist/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/functions/package.json b/packages/functions/package.json index aaec726153c..478874efec0 100644 --- a/packages/functions/package.json +++ b/packages/functions/package.json @@ -4,18 +4,18 @@ "description": "", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.node.cjs.js", - "browser": "dist/index.esm2017.js", - "module": "dist/index.esm2017.js", - "esm5": "dist/index.esm.js", + "browser": "dist/index.esm2017.mjs", + "module": "dist/index.esm2017.mjs", + "esm5": "dist/index.esm.mjs", "exports": { ".": { "types": "./dist/functions-public.d.ts", "node": { - "import": "./dist/esm-node/index.node.esm.js", + "import": "./dist/esm-node/index.node.esm.mjs", "require": "./dist/index.node.cjs.js" }, - "esm5": "./dist/index.esm.js", - "default": "./dist/index.esm2017.js" + "esm5": "./dist/index.esm.mjs", + "default": "./dist/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/installations-compat/package.json b/packages/installations-compat/package.json index 0313aaa10e2..3bd9f2f1b05 100644 --- a/packages/installations-compat/package.json +++ b/packages/installations-compat/package.json @@ -3,15 +3,15 @@ "version": "0.1.16", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "module": "dist/esm/index.esm2017.js", - "browser": "dist/esm/index.esm2017.js", - "esm5": "dist/esm/index.esm.js", + "module": "dist/esm/index.esm2017.mjs", + "browser": "dist/esm/index.esm2017.mjs", + "esm5": "dist/esm/index.esm.mjs", "exports": { ".": { "types": "./dist/src/index.d.ts", "require": "./dist/index.cjs.js", - "esm5": "./dist/esm/index.esm.js", - "default": "./dist/esm/index.esm2017.js" + "esm5": "./dist/esm/index.esm.mjs", + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/installations/package.json b/packages/installations/package.json index e59eaf44508..4b7eb2b832e 100644 --- a/packages/installations/package.json +++ b/packages/installations/package.json @@ -3,15 +3,15 @@ "version": "0.5.16", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "module": "dist/esm/index.esm2017.js", - "browser": "dist/esm/index.esm2017.js", - "esm5": "dist/esm/index.esm.js", + "module": "dist/esm/index.esm2017.mjs", + "browser": "dist/esm/index.esm2017.mjs", + "esm5": "dist/esm/index.esm.mjs", "exports": { ".": { "types": "./dist/installations-public.d.ts", "require": "./dist/index.cjs.js", - "esm5": "./dist/esm/index.esm.js", - "default": "./dist/esm/index.esm2017.js" + "esm5": "./dist/esm/index.esm.mjs", + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/logger/package.json b/packages/logger/package.json index 587b21448ef..1cee3c95d22 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -4,14 +4,14 @@ "description": "A logger package for use in the Firebase JS SDK", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "module": "dist/esm/index.esm2017.js", + "module": "dist/esm/index.esm2017.mjs", "esm5": "dist/esm/index.esm5.js", "exports": { ".": { "types": "./dist/index.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm5.js", - "default": "./dist/esm/index.esm2017.js" + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/messaging-compat/package.json b/packages/messaging-compat/package.json index d11308673da..78bff903e0a 100644 --- a/packages/messaging-compat/package.json +++ b/packages/messaging-compat/package.json @@ -5,15 +5,15 @@ "description": "", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "browser": "dist/esm/index.esm2017.js", - "module": "dist/esm/index.esm2017.js", - "esm5": "dist/esm/index.esm.js", + "browser": "dist/esm/index.esm2017.mjs", + "module": "dist/esm/index.esm2017.mjs", + "esm5": "dist/esm/index.esm.mjs", "exports": { ".": { "types": "./dist/src/index.d.ts", "node": "./dist/index.cjs.js", - "esm5": "./dist/esm/index.esm.js", - "default": "./dist/esm/index.esm2017.js" + "esm5": "./dist/esm/index.esm.mjs", + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/messaging/package.json b/packages/messaging/package.json index f922cdea151..54bfd6695ea 100644 --- a/packages/messaging/package.json +++ b/packages/messaging/package.json @@ -4,24 +4,24 @@ "description": "", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "browser": "dist/esm/index.esm2017.js", - "module": "dist/esm/index.esm2017.js", - "sw": "dist/index.sw.esm2017.js", + "browser": "dist/esm/index.esm2017.mjs", + "module": "dist/esm/index.esm2017.mjs", + "sw": "dist/index.sw.esm2017.mjs", "sw-main": "dist/index.sw.cjs", - "esm5": "dist/esm/index.esm.js", + "esm5": "dist/esm/index.esm.mjs", "exports": { ".": { "types": "./dist/index-public.d.ts", "node": "./dist/index.cjs.js", - "browser": "./dist/esm/index.esm2017.js", - "module": "./dist/esm/index.esm2017.js", - "esm5": "./dist/esm/index.esm.js", + "browser": "./dist/esm/index.esm2017.mjs", + "module": "./dist/esm/index.esm2017.mjs", + "esm5": "./dist/esm/index.esm.mjs", "default": "./dist/index.cjs.js" }, "./sw": { "types": "./dist/sw/index-public.d.ts", "node": "./dist/index.sw.cjs", - "default": "./dist/index.sw.esm2017.js" + "default": "./dist/index.sw.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/messaging/sw/package.json b/packages/messaging/sw/package.json index 98f4f9711b6..dd489fb821a 100644 --- a/packages/messaging/sw/package.json +++ b/packages/messaging/sw/package.json @@ -3,6 +3,6 @@ "description": "", "author": "Firebase (https://firebase.google.com/)", "main": "../dist/index.sw.cjs", - "module": "../dist/index.sw.esm2017.js", + "module": "../dist/index.sw.esm2017.mjs", "typings": "../dist/src/index.sw.d.ts" } diff --git a/packages/performance-compat/package.json b/packages/performance-compat/package.json index e7f6bee78f9..14dc1f238d2 100644 --- a/packages/performance-compat/package.json +++ b/packages/performance-compat/package.json @@ -4,15 +4,15 @@ "description": "The compatibility package of Firebase Performance", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "browser": "dist/esm/index.esm2017.js", - "module": "dist/esm/index.esm2017.js", + "browser": "dist/esm/index.esm2017.mjs", + "module": "dist/esm/index.esm2017.mjs", "esm5": "dist/esm/index.esm5.js", "exports": { ".": { "types": "./dist/src/index.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm5.js", - "default": "./dist/esm/index.esm2017.js" + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/performance/package.json b/packages/performance/package.json index 5ef4420aea8..38be5aca831 100644 --- a/packages/performance/package.json +++ b/packages/performance/package.json @@ -4,15 +4,15 @@ "description": "Firebase performance for web", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "browser": "dist/esm/index.esm2017.js", - "module": "dist/esm/index.esm2017.js", - "esm5": "dist/esm/index.esm.js", + "browser": "dist/esm/index.esm2017.mjs", + "module": "dist/esm/index.esm2017.mjs", + "esm5": "dist/esm/index.esm.mjs", "exports": { ".": { "types": "./dist/src/index.d.ts", "require": "./dist/index.cjs.js", - "esm5": "./dist/esm/index.esm.js", - "default": "./dist/esm/index.esm2017.js" + "esm5": "./dist/esm/index.esm.mjs", + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/remote-config-compat/package.json b/packages/remote-config-compat/package.json index bb4688554cc..4be544c9f5d 100644 --- a/packages/remote-config-compat/package.json +++ b/packages/remote-config-compat/package.json @@ -4,15 +4,15 @@ "description": "The compatibility package of Remote Config", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "browser": "dist/esm/index.esm2017.js", - "module": "dist/esm/index.esm2017.js", + "browser": "dist/esm/index.esm2017.mjs", + "module": "dist/esm/index.esm2017.mjs", "esm5": "dist/esm/index.esm5.js", "exports": { ".": { "types": "./dist/src/index.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm5.js", - "default": "./dist/esm/index.esm2017.js" + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/remote-config/package.json b/packages/remote-config/package.json index 8ad1b030f62..79f7b94b74f 100644 --- a/packages/remote-config/package.json +++ b/packages/remote-config/package.json @@ -4,15 +4,15 @@ "description": "The Remote Config package of the Firebase JS SDK", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "browser": "dist/esm/index.esm2017.js", - "module": "dist/esm/index.esm2017.js", - "esm5": "dist/esm/index.esm.js", + "browser": "dist/esm/index.esm2017.mjs", + "module": "dist/esm/index.esm2017.mjs", + "esm5": "dist/esm/index.esm.mjs", "exports": { ".": { "types": "./dist/remote-config-public.d.ts", "require": "./dist/index.cjs.js", - "esm5": "./dist/esm/index.esm.js", - "default": "./dist/esm/index.esm2017.js" + "esm5": "./dist/esm/index.esm.mjs", + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/rules-unit-testing/package.json b/packages/rules-unit-testing/package.json index c796541fa3c..bb89f885dfb 100644 --- a/packages/rules-unit-testing/package.json +++ b/packages/rules-unit-testing/package.json @@ -8,7 +8,7 @@ ".": { "types": "./dist/index.d.ts", "node": { - "import": "./dist/esm/index.esm.js", + "import": "./dist/esm/index.esm.mjs", "require": "./dist/index.cjs.js" }, "default": "./dist/index.cjs.js" diff --git a/packages/storage-compat/package.json b/packages/storage-compat/package.json index d2678207412..f8515de5d30 100644 --- a/packages/storage-compat/package.json +++ b/packages/storage-compat/package.json @@ -4,15 +4,15 @@ "description": "The Firebase Firestore compatibility package", "author": "Firebase (https://firebase.google.com/)", "main": "./dist/index.cjs.js", - "browser": "./dist/esm/index.esm2017.js", - "module": "./dist/esm/index.esm2017.js", + "browser": "./dist/esm/index.esm2017.mjs", + "module": "./dist/esm/index.esm2017.mjs", "esm5": "./dist/esm/index.esm5.js", "exports": { ".": { "types": "./dist/src/index.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm5.js", - "default": "./dist/esm/index.esm2017.js" + "default": "./dist/esm/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/storage/package.json b/packages/storage/package.json index cadb93dfe6b..837117afb6e 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -4,18 +4,18 @@ "description": "", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.node.cjs.js", - "module": "dist/index.esm2017.js", - "browser": "dist/index.esm2017.js", + "module": "dist/index.esm2017.mjs", + "browser": "dist/index.esm2017.mjs", "esm5": "dist/index.esm5.js", "exports": { ".": { "types": "./dist/storage-public.d.ts", "node": { - "import": "./dist/node-esm/index.node.esm.js", + "import": "./dist/node-esm/index.node.esm.mjs", "default": "./dist/index.node.cjs.js" }, "esm5": "./dist/index.esm5.js", - "default": "./dist/index.esm2017.js" + "default": "./dist/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/template/package.json b/packages/template/package.json index 00196002761..5c002c87b9e 100644 --- a/packages/template/package.json +++ b/packages/template/package.json @@ -5,18 +5,18 @@ "description": "A template package for new firebase packages", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.node.cjs.js", - "browser": "dist/index.esm2017.js", - "module": "dist/index.esm2017.js", + "browser": "dist/index.esm2017.mjs", + "module": "dist/index.esm2017.mjs", "esm5": "dist/index.esm5.js", "exports": { ".": { "types": "./dist/index.d.ts", "node": { - "import": "./dist/node-esm/index.node.esm.js", + "import": "./dist/node-esm/index.node.esm.mjs", "require": "./dist/index.node.cjs.js" }, "esm5": "./dist/index.esm5.js", - "default": "./dist/index.esm2017.js" + "default": "./dist/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/util/package.json b/packages/util/package.json index a0fdb2b0af8..8ce5a357d05 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -4,18 +4,18 @@ "description": "", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.node.cjs.js", - "browser": "dist/index.esm2017.js", - "module": "dist/index.esm2017.js", + "browser": "dist/index.esm2017.mjs", + "module": "dist/index.esm2017.mjs", "esm5": "dist/index.esm5.js", "exports": { ".": { "types": "./dist/util-public.d.ts", "node": { - "import": "./dist/node-esm/index.node.esm.js", + "import": "./dist/node-esm/index.node.esm.mjs", "require": "./dist/index.node.cjs.js" }, "esm5": "./dist/index.esm5.js", - "default": "./dist/index.esm2017.js" + "default": "./dist/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/packages/webchannel-wrapper/gulpfile.js b/packages/webchannel-wrapper/gulpfile.js index de51bc0ded1..6f12883fb67 100644 --- a/packages/webchannel-wrapper/gulpfile.js +++ b/packages/webchannel-wrapper/gulpfile.js @@ -120,7 +120,7 @@ function createRollupTask({ }; const outputOptions = { - file: `dist/index${outputExtension ? '.' : ''}${outputExtension}.js`, + file: `dist/index${outputExtension ? '.' : ''}${outputExtension}.${outputExtension ? 'm' : ''}js`, format, sourcemap: true, // Prevents warning when compiling CJS that there are named and default exports together. diff --git a/packages/webchannel-wrapper/package.json b/packages/webchannel-wrapper/package.json index bf292d0ca8d..8daacf32bb9 100644 --- a/packages/webchannel-wrapper/package.json +++ b/packages/webchannel-wrapper/package.json @@ -4,14 +4,14 @@ "description": "A wrapper of the webchannel packages from closure-library for use outside of a closure compiled application", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.js", - "module": "dist/index.esm2017.js", - "esm5": "dist/index.esm.js", + "module": "dist/index.esm2017.mjs", + "esm5": "dist/index.esm.mjs", "exports": { ".": { "types": "./src/index.d.ts", "require": "./dist/index.js", - "esm5": "./dist/index.esm.js", - "default": "./dist/index.esm2017.js" + "esm5": "./dist/index.esm.mjs", + "default": "./dist/index.esm2017.mjs" }, "./package.json": "./package.json" }, diff --git a/repo-scripts/size-analysis/README.md b/repo-scripts/size-analysis/README.md index d29eb882ee4..ac795570c21 100644 --- a/repo-scripts/size-analysis/README.md +++ b/repo-scripts/size-analysis/README.md @@ -79,7 +79,7 @@ try { try { const name: string = "adhoc"; const dtsFile: string = '.../index.d.ts'; - const bundleFile: string = '.../index.esm2017.js'; + const bundleFile: string = '.../index.esm2017.mjs'; const report: Report = await generateReport(name, dtsFile, bundleFile); console.log(report); diff --git a/repo-scripts/size-analysis/package.json b/repo-scripts/size-analysis/package.json index 7902fadf9b0..e6a00e0cc63 100644 --- a/repo-scripts/size-analysis/package.json +++ b/repo-scripts/size-analysis/package.json @@ -5,7 +5,7 @@ "description": "A template package for new firebase packages", "author": "Firebase (https://firebase.google.com/)", "main": "dist/index.cjs.js", - "esm2017": "dist/index.esm2017.js", + "esm2017": "dist/index.esm2017.mjs", "files": [ "dist" ],