Simon Willison on Nostr: It turns out I don't have the JavaScript ecosystem fluency to figure out how to turn ...
It turns out I don't have the JavaScript ecosystem fluency to figure out how to turn this kind of syntax (from the new
https://jsr.io/ repository):
import * as mod from "@kwhinnery/yassify";
Into something that works in my browser.
I have tried and failed to use Vite, esbuild and Parcel so far.
Anyone able to share notes (or a Gist) with a recipe that works? I have npm installed.
I want to start by calling the
https://jsr.io/@kwhinnery/yassify function from an index.html file!
Published at
2024-03-02 17:44:57Event JSON
{
"id": "52afcec922b4356aa8c37a9b43a8c00c3c56701662d1c84c8834acf9353d0024",
"pubkey": "8b0be93ed69c30e9a68159fd384fd8308ce4bbf16c39e840e0803dcb6c08720e",
"created_at": 1709401497,
"kind": 1,
"tags": [
[
"proxy",
"https://fedi.simonwillison.net/users/simon/statuses/112027336520936261",
"activitypub"
]
],
"content": "It turns out I don't have the JavaScript ecosystem fluency to figure out how to turn this kind of syntax (from the new https://jsr.io/ repository):\n\nimport * as mod from \"@kwhinnery/yassify\";\n\nInto something that works in my browser.\n\nI have tried and failed to use Vite, esbuild and Parcel so far.\n\nAnyone able to share notes (or a Gist) with a recipe that works? I have npm installed.\n\nI want to start by calling the https://jsr.io/@kwhinnery/yassify function from an index.html file!",
"sig": "3f63fc8149898a0809cce2abd76f96a3053bb75e5d5c2f4b5cbb4ba71366cbc3d2596cae21541a2d75322a628994a4f7a2f868df6207bec92a104297b58a0101"
}