Skip to content

@rollup/plugin-swc does not allow input files to be filtered #1564

@BryceMehring

Description

@BryceMehring
  • Rollup Plugin Name: @rollup/plugin-swc
  • Rollup Plugin Version: 0.1.1
  • Rollup Version: 3.28.0
  • Operating System (or Browser): MacOS
  • Node Version: 16.20.2

Expected Behavior

Allow input files to be filtered for @rollup/plugin-swc. I am building a web app and want to exclude files from being process by SWC like CSS imports for example. This plugin should function like other @rollup plugins by using createFilter from @rollup/pluginutils and filtering based on the id in the transform plugin function.

Actual Behavior

All files get process by SWC. See https://github.com/rollup/plugins/blob/swc-v0.1.1/packages/swc/src/module.ts#L27

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions