Skip to content
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

Report is showing multiple times #6

Closed
DanPen opened this issue Nov 26, 2017 · 1 comment
Closed

Report is showing multiple times #6

DanPen opened this issue Nov 26, 2017 · 1 comment

Comments

@DanPen
Copy link

DanPen commented Nov 26, 2017

Hey there. I'm noticing that if I have multiple outputs, I get an analysis for each one, but without distinction on which report belongs to which output. Here is my Rollup config:

import babel from 'rollup-plugin-babel'
import commonjs from 'rollup-plugin-commonjs'
import postcss from 'rollup-plugin-postcss'
import resolve from 'rollup-plugin-node-resolve'
import sizes from 'rollup-plugin-sizes'

import pkg from './package.json'

export default {
  input: 'src/index.js',
  output: [
    {
      file: pkg.main,
      format: 'cjs'
    },
    {
      file: pkg.module,
      format: 'es'
    }
  ],
  external: [
    'react',
    'react-dom',
    'prop-types'
  ],
  plugins: [
    postcss({}),
    babel({
      exclude: 'node_modules/**'
    }),
    resolve(),
    commonjs(),
    sizes()
  ]
}

And build stdout:

src/index.js → dist/index.js, dist/index.es.js...
src/index.js:
rollup helpers - 12.87 KB (61.51%)
app - 6.48 KB (30.96%)
invariant - 1.58 KB (7.53%)
src/index.js:
rollup helpers - 12.87 KB (61.51%)
app - 6.48 KB (30.96%)
invariant - 1.58 KB (7.53%)

Thanks in advance.

@tivac
Copy link
Owner

tivac commented Nov 27, 2017

Pretty sure I wrote this before rollup had multiple output targets, so that isn't terribly surprising. It is disappointing though 😞

I'll try to tackle this in the next few days.

tivac added a commit that referenced this issue Jan 30, 2018
@tivac tivac closed this as completed Dec 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants