@servall/toml-loader
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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' },
    },
  ],
},

Usage

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

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

Alternatives

Readme

Keywords

none

Package Sidebar

Install

npm i @servall/toml-loader

Weekly Downloads

0

Version

1.0.0

License

MPL-2.0

Unpacked Size

21.1 kB

Total Files

9

Last publish

Collaborators

  • jbrandtlc
  • servalldev
  • joelgallant-me
  • gregnr