TOML
Parcel supports importing TOML files from JavaScript using the @parcel/transformer-toml
plugin. When a .toml
file is detected, it will be installed into your project automatically.
Example usage
#app.js:
import data from './data.toml';
console.log(data.hello[0]);
// => "world"
data.toml:
hello = [
"world",
"computer"
]