Skip to content

Interface: TransformExtraOptions ​

Properties ​

ast? ​

  • Type: Program
  • Optional
  • Experimental

attributes ​

  • Type: Record<string, string>

The import attributes the module was imported with. {} means none. Without experimental.importAttributes, it is always {}, even when the import has attributes.


magicString? ​


moduleType ​


rawId ​

  • Type: string

The module id without import attributes. Without experimental.importAttributes, it equals id.

Was this page helpful?