Skip to content

Issue with packages that specify side effects #4084

@TheMcMurder

Description

@TheMcMurder
  • Rollup Version: 2.48.0
  • Operating System (or Browser): MacOS 11.3 / affects all browsers
  • Node Version (if applicable): run on 12.16.1 and v14.16.0
  • Link to reproduction (IMPORTANT, read below): https://github.com/TheMcMurder/rollup-test

Expected Behavior

CSS is bundled into the output. The dependencies specify their side effects with: sideEffects: ["*.css"]. See package json files for button, theme, and provider

Screen Shot 2021-05-17 at 3 09 06 PM

Actual Behavior

CSS is not bundled into the output

Screen Shot 2021-05-17 at 2 46 39 PM

I'm happy to help solve this issue but I'm not certain where in rollup the issue lies. I found some test cases here but am not entirely certain where I would add another test case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions