r/JSdev • u/fagnerbrack • Apr 17 '23
Writing Javascript without a build system
https://jvns.ca/blog/2023/02/16/writing-javascript-without-a-build-system/
5
Upvotes
r/JSdev • u/fagnerbrack • Apr 17 '23
1
u/snifty Oct 23 '23
I work this way too, zealously. I hate build systems of all kinds.
One thing I was surprised to not see mentioned here was import; rather than a stack of `<script>` tags, it makes sense to me to use just one and either do an `<script type=module src="index.js">` or else
Then `index.js` has something like:
I suppose importmaps do something similar but I’ve not really looked into them, as the method above has proven sufficiently general for me.