bundlers/rollup-compatible
The pieces the rollup and vite adapters share. Vite 8 builds with rolldown, whose plugin API is rollup’s but whose types are its own, so these are typed by the shape both accept rather than by either package’s declarations.
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| AssetEmitter | The part of a rollup or rolldown plugin context renameCssAssets uses. |
| BundleOutputLike | An emitted file of a rollup or rolldown bundle, as renameCssAssets reads it. |
| EmittedCssAsset | The styles.css asset renameCssAssets emits. |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| combineExternal | Puts Obsidian’s modules and the Node builtins beside whatever the consumer’s own external option names. |
| renameCssAssets | Moves every CSS asset of a bundle into one styles.css, the only stylesheet Obsidian loads. |
| Type | Description |
|---|---|
| CombinedExternalFunction | The function combineExternal returns, which every bundler of the rollup family accepts. |
| ExternalFunction | The function form of ExternalLike. Its result is read for truthiness, as rollup and rolldown read it. |
| ExternalLike | The external option of rollup and of rolldown, in the shape both accept. |
| ExternalPattern | One entry of the array form of ExternalLike. |