Skip to content

SilentVoid13/esbuild-plugin-toml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esbuild-plugin-toml

An esbuild plugin to handle toml files.

Install

npm install esbuild-plugin-toml -D
yarn add esbuild-plugin-toml -D

Usage

esbuild.config.json

const esbuild = require('esbuild');
const toml = require('esbuild-plugin-toml');

esbuild.build({
  bundle: true,
  entryPoints: ['main.js'],
  outfile: 'out.js',
  plugins: [
    toml()
  ]
}).catch(() => process.exit(1))

In your JS files:

const tomlObject = require('example.toml');

About

esbuild plugin to import TOML files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published