Skip to content

Firestore: fix rollup config to keep intermediate bundles for source maps #7379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions packages/firestore/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const allBuilds = [
{
input: './src/index.node.ts',
output: {
file: pkg['main-esm'],
file: 'dist/index.node.intermediate.mjs',
format: 'es',
sourcemap: true
},
Expand All @@ -88,7 +88,7 @@ const allBuilds = [
},
// Node CJS build
{
input: pkg['main-esm'],
input: 'dist/index.node.intermediate.mjs',
output: {
file: pkg.main,
format: 'cjs',
Expand All @@ -105,7 +105,7 @@ const allBuilds = [
},
// Node ESM build with build target reporting
{
input: pkg['main-esm'],
input: 'dist/index.node.intermediate.mjs',
output: {
file: pkg['main-esm'],
format: 'es',
Expand All @@ -123,7 +123,7 @@ const allBuilds = [
{
input: './src/index.ts',
output: {
file: pkg.browser,
file: 'dist/index.esm2017.intermediate.js',
format: 'es',
sourcemap: true
},
Expand All @@ -135,7 +135,7 @@ const allBuilds = [
},
// Convert es2017 build to ES5
{
input: pkg['browser'],
input: 'dist/index.esm2017.intermediate.js',
output: [
{
file: pkg['esm5'],
Expand All @@ -154,7 +154,7 @@ const allBuilds = [
},
// Convert es2017 build to cjs
{
input: pkg['browser'],
input: 'dist/index.esm2017.intermediate.js',
output: [
{
file: './dist/index.cjs.js',
Expand All @@ -170,7 +170,7 @@ const allBuilds = [
},
// es2017 build with build target reporting
{
input: pkg['browser'],
input: 'dist/index.esm2017.intermediate.js',
output: [
{
file: pkg['browser'],
Expand Down