Skip to content

Commit

Permalink
Update functions-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
DellaBitta committed Sep 20, 2024
1 parent 49f0618 commit 3f14414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
6 changes: 3 additions & 3 deletions packages/functions-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
"version": "0.3.12",
"description": "",
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
"main": "dist/index.node.cjs.js",
"main": "dist/index.cjs.js",
"browser": "dist/index.esm2017.js",
"module": "dist/index.esm2017.js",
"esm5": "dist/index.esm5.js",
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"node": {
"import": "./dist/node-esm/index.node.esm.js",
"require": "./dist/index.node.cjs.js"
"require": "./dist/index.cjs.js",
"import": "./dist/index.esm2017.js"
},
"esm5": "./dist/index.esm5.js",
"browser": {
Expand Down
19 changes: 1 addition & 18 deletions packages/functions-compat/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,4 @@ const browserBuilds = [
}
];

const nodeBuilds = [
{
input: 'src/index.node.ts',
output: [{ file: pkg.main, format: 'cjs', sourcemap: true }],
plugins: es5BuildPlugins,
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
},
{
input: 'src/index.node.ts',
output: [
{ file: pkg.exports['.'].node.import, format: 'es', sourcemap: true }
],
plugins: [...es2017BuildPlugins, emitModulePackageFile()],
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
}
];

export default [...browserBuilds, ...nodeBuilds];
export default [...browserBuilds];

0 comments on commit 3f14414

Please sign in to comment.