#5847·rollup

Support import ... with {} syntax in the plugin pipeline

Author: FRSgitCreated Feb 17, 2025Updated Mar 20, 2026
Labelst⁷ ⋅ modificationt⁸ ⋅ triage

Expected Behavior / Situation

When writing a plugin, one should have access to the values passed within import ... with ... syntax. For example, when this import is processed: import XXX from YYY with { type: "json" } In the plugin I should get an information about { type: "json" } being used.

Actual Behavior / Situation

Currently, rollup does not feed this kind of information into the plugin pipeline. Example console.log output from resolveId hook:

ImageImage

Modification Proposal

Import info should be either added info existing attributes object or as a new property, e.g. with.