Skip to content

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): Plugin

Parameters:

ParameterTypeDescription
extensionstringThe extension to change the files to.

Returns: Plugin — An esbuild Plugin object that handles the renaming and modification of output files.