Webpack plugin for loading toml files

Usage no npm install needed!

<script type="module">
  import servallTomlLoader from 'https://cdn.skypack.dev/@servall/toml-loader';


TOML Loader

Licensed under MPL 2.0

Webpack loader for TOML files. Supports the latest TOML spec, and provides named exports.

yarn install @servall/toml-loader
// in your loaders:
module: {
  rules: [
      test: /\.toml$/,
      use: { loader: '@servall/toml-loader' },


Supports default export with all file contents, and named exports.

import contents from './my-file.toml';
import { namedExport } from './my-other-file.toml';