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

Filesize gets logged twice #39

Open
brunoscopelliti opened this issue Jan 31, 2019 · 1 comment
Open

Filesize gets logged twice #39

brunoscopelliti opened this issue Jan 31, 2019 · 1 comment
Labels

Comments

@brunoscopelliti
Copy link

I'm on windows 10, and using Rollup version 1.1.2.
When I run rollup the output is produced, but the filesize information is logged twice.
I'm using Rollup through its programmatic api:

const config = {
  input: "src/...",
  output: {
    file: "dist/...",
    format: "iife",
    name: "Foo",
    banner: "...",
  },
  plugins: [
    // Other plugins ...
    filesize({
      render(_, bundle, { gzipSize, bundleSize }){
        const filename = bundle.file.split("\\").slice(-1)[0];
        return `${filename}: ${bundleSize} (${gzipSize} gzipped).`;
      }
    }),
  ],
}

const bundle = await rollup.rollup(config);
await bundle.generate(config.output);
await bundle.write(config.output);
@ritz078
Copy link
Owner

ritz078 commented Feb 21, 2019

@speedcuber911 You want to look into this? should be a very small fix.

@brettz9 brettz9 added the bug label May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants