Skip to content

Import Attributes have no effect on rollup's getModuleInfo #383

@uihp

Description

@uihp

Reproduction

https://github.com/uihp/mcve-rollup-import-attributes

Describe the bug

In the minimal repro, rollup-plugin-import-css works fine when using @rollup/plugin-babel

but not when using rollup-plugin-esbuild, the return value of getModuleInfo in the plugin doesn't contain import attributes

I don't know if there are differences between babel and esbuild in affecting rollup moduleInfo

System Info

## Binaries:
 - Node: 20.15.1 - C:\Program Files\nodejs\node.EXE
 - Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
 - npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
## Browsers:
 - Edge: Chromium (127.0.2651.74), ChromiumDev (129.0.2792.10)
 - Internet Explorer: 11.0.22621.3527
## npmPackages:
 - esbuild: ^0.24.0 => 0.24.0
 - rollup-plugin-esbuild: ^6.1.1 => 6.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions