Writing Web code when you're an outsider be like:
* How do I embed a TOML config file via webpack?
:cirno_think:
* Try
toml-loader, the first search result
* Why doesn't it work?
:cirno_what:
* Oh, it's deprecated.
:cirno_no_work:
* Try
raw-loader, the next thing suggested by documentation. ​:cirno_think:
* Why doesn't it work?
:cirno_what:
* Oh, it's deprecated.
:cirno_no_work:
* Try
type: 'asset/source'
* Finally, after half an hour, I can print a string to the console.
:cirno_hi:
* But after reviewing the documentation again, I found it's still suboptimal, and the correct solution is to define a custom parser
parse: toml.parse based on the toml package.

Everything in Web is moving at the speed of Chromium updates.
:woozy_baa:

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mk.absturztau.be/notes/ag4vjzvivx1501qr on your instance and quote it. (Note that quoting is not supported in Mastodon.)