What is Nostr?
namosca
npub1auw…xp7s
2024-10-05 19:33:11

How to let ELM automatically integrated with JS NPM packages and run a local server without configuration

I played with ELM some years ago, and recently I wanted to get into it again. At my time, there was create-elm-app, which enabled hot reloading and made life easier, but now I tried it again and it was complaining about old SSLs, and when I tried import NPM packages into the .JS file, it complained about some babel translations.

All my headache disappeared when I got the recommendation to try the Parcel JS bundler.

I have found 2 or 3 articles on the topic, and only one worked, which I post below. It was written by Kazushi Kawamura and uses Parcel, Yarn and elm init.

https://kawamurakazushi.com/20190118-setting-up-elm-with-parcel/

Other links:
https://parceljs.org/
Author Public Key
npub1auwq2edy2tahk58uepwyvjjmdvkxdvmrv492xts8m2s030gla0msruxp7s