Note: This page covers Parcel 1, the documentation for Parcel 2 is being worked on here: v2.parceljs.org

TOML

Supported extensions: toml You can import toml files into your js like this import data from './filename.toml'.

Example file structure:

.
├── package.json
└── src
    ├── data.toml
    └── index.js
# data.toml

hello = [
  "world",
  "computer"
]
// index.js

import data from './data.toml'
console.log(data.hello[0]);

// "world"

Help us improve the docs

If something is missing or not entirely clear, please file an issue on the website repository or edit this page.