OptionalfileOptionalnameOptionaloriginalAn absolute path to the original file if this asset corresponds to a file on disk.
This property will be passed on to subsequent plugin hooks that receive a
PreRenderedAsset or an OutputAsset like
generateBundle.
In watch mode, Rolldown will also automatically watch this file for changes and
trigger a rebuild if it changes. Therefore, it is not necessary to call
this.addWatchFile for this file.
Either a
nameor afileNamecan be supplied. If afileNameis provided, it will be used unmodified as the name of the generated file, throwing an error if this causes a conflict. Otherwise, if anameis supplied, this will be used as substitution for[name]in the correspondingoutput.assetFileNamespattern, possibly adding a unique number to the end of the file name to avoid conflicts. If neither anamenorfileNameis supplied, a default name will be used.