Skip to content

bundlers/esbuild-impl/feature-options

What the ObsidianPluginFeatureOptions add to the esbuild build: the JSX runtime, the framework’s compile-time constants, the .wasm loader, the Solid and Vue plugins, and the stylesheet options of the Sass plugin that loads every stylesheet.

Interface Description
GetEsbuildFeatureBuildOptionsParams Parameters for getEsbuildFeatureBuildOptions.
Function Description
getEsbuildFeatureBuildOptions Builds the esbuild options the features set: the automatic JSX runtime for React and Preact, the framework’s compile-time constants, and the binary loader for .wasm.
getEsbuildFeaturePlugins Creates the esbuild plugins the framework needs: unplugin-vue for Vue, and the shared Solid transform for Solid.
getSassPluginOptionsList Builds the option sets of the Sass plugin that loads every stylesheet: one for ordinary stylesheets, and with CSS modules on, one before it that loads *.module.css with esbuild’s own local-css loader. Each runs the stylesheet through PostCSS and Tailwind when the options ask for it.
Type Description
EsbuildFeatureBuildOptions The esbuild options of getEsbuildFeatureBuildOptions.
GetEsbuildFeaturePluginsParams Parameters for getEsbuildFeaturePlugins.
GetSassPluginOptionsListParams Parameters for getSassPluginOptionsList.