An esbuild plugin to load TOML files during bundling. Version 0.0.1 is the initial and only release, with no updates since 2021. The package is lightweight and depends on esbuild's plugin API, providing a simple setup. Compared to alternatives like @toml-tools/loader, it is minimal but lacks customization options (e.g., no support for custom parsing or multiple file patterns). It is designed for basic TOML loading use cases.
npm install esbuild-plugin-tomlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up esbuild with the TOML plugin and import a TOML file in JavaScript.
Ensure your TOML files have the .toml extension, or consider using a different plugin if custom extensions are needed.
Check compatibility with your esbuild version. If using esbuild >0.14, consider testing or using an alternative plugin.
Ensure tomlPlugin() is added to the plugins array in esbuild.build options.
Use `const tomlPlugin = require('esbuild-plugin-toml')` then call `tomlPlugin()`.