changeExtensionPlugin
Creates an esbuild plugin that changes the extension of JavaScript files after the build process.
Import:
import { changeExtensionPlugin } from 'obsidian-dev-utils/script-utils/bundlers/esbuild-impl/change-extension-plugin';Signature:
function changeExtensionPlugin(extension: string): PluginParameters:
| Parameter | Type | Description |
|---|---|---|
extension | string | The extension to change the files to. |
Returns: Plugin — An esbuild Plugin object that handles the renaming and modification of output files.