andrejewski / raj

The Elm Architecture for JavaScript
https://jew.ski/raj
MIT License
196 stars 8 forks source link

JavaScript es6 Module #39

Closed marcodpt closed 1 month ago

marcodpt commented 1 month ago

With this small change in your brilliant work, it is possible to use it using es6 modules.

This allows it to be used in the node, deno environment, basically any javascript runtime, and especially in the browser.

Just use the command:

import {runtime} from "https://cdn.jsdelivr.net/gh/andrejewski/raj/index.js"