here is a super basic example app I made that just logs in and shows you 5 people you follow github.com/jvns/bsky-oa..., just needed to fiddle with importmaps a bit
here is a super basic example app I made that just logs in and shows you 5 people you follow github.com/jvns/bsky-oa..., just needed to fiddle with importmaps a bit
~2 hours to do what I put off for months
~2 hours to do what I put off for months
1. No one else is using importmaps so trying to use RANDOM_LIB may or may not be plugnplay
2. You're not in the world's largest frontend ecosystem so you can't use off the shelf design components
1. No one else is using importmaps so trying to use RANDOM_LIB may or may not be plugnplay
2. You're not in the world's largest frontend ecosystem so you can't use off the shelf design components
talentohq.com/es/funcional...
#rrhh #hr
The asset pipeline has been a nightmare since Rails ditched Sprockets as the One Way. importmaps and Propshaft is better, but its still really confusing.
The asset pipeline has been a nightmare since Rails ditched Sprockets as the One Way. importmaps and Propshaft is better, but its still really confusing.
- is there a simple way to convert a CommonJS module into an ES module on my computer? (the way esm.js does)
- Is there a tool that automatically generates importmaps for an ES Module that I have downloaded locally?
- is there a simple way to convert a CommonJS module into an ES module on my computer? (the way esm.js does)
- Is there a tool that automatically generates importmaps for an ES Module that I have downloaded locally?
- http imports / importmaps
- css / json modules
- URLPattern
- web components
- css nesting
- relative color syntax
And don't forget:
- HTML INCLUDES?!?!?
- http imports / importmaps
- css / json modules
- URLPattern
- web components
- css nesting
- relative color syntax
And don't forget:
- HTML INCLUDES?!?!?
- Handles npm, jsr and GitHub registries
- Checks the User-Agent to serve the right ES version (es2022, etc) – no bloat!
- Supports tree-shaking, so you can import just what you need
- Handles npm, jsr and GitHub registries
- Checks the User-Agent to serve the right ES version (es2022, etc) – no bloat!
- Supports tree-shaking, so you can import just what you need
github.com/basecamp/lex...
They mark all the `@lexical/*` extensions as "devDependencies", so they won't get deduped by your importmaps.
Cool that you can now use TipTap, Lexical, or Trix with ActionText
dev.37signals.com/announcing-l...
github.com/basecamp/lex...
They mark all the `@lexical/*` extensions as "devDependencies", so they won't get deduped by your importmaps.
It is a great tool for generating importmaps that you can paste into your HTML file, so that your JavaScript modules can import libraries.
It currently lets you choose from 4 module sources: jspm.io, esm.sh, unpkg.com, and cdn.jsdelivr.net.
generator.jspm.io
It is a great tool for generating importmaps that you can paste into your HTML file, so that your JavaScript modules can import libraries.
It currently lets you choose from 4 module sources: jspm.io, esm.sh, unpkg.com, and cdn.jsdelivr.net.
generator.jspm.io
It works *significantly* better with multi-package libraries instead of multi-entrypoint libraries.
// my-lib/index.js
import { foo } from "./foo.js"
foo()
^ this shit is gonna blow up.
// my-lib/index.js
import { foo } from "@my-lib"
foo()
^ perfect.
It works *significantly* better with multi-package libraries instead of multi-entrypoint libraries.
// my-lib/index.js
import { foo } from "./foo.js"
foo()
^ this shit is gonna blow up.
// my-lib/index.js
import { foo } from "@my-lib"
foo()
^ perfect.
If I were to do it again, I'd start with importmaps, and not use TypeScript for the Stimulus controllers...
If I were to do it again, I'd start with importmaps, and not use TypeScript for the Stimulus controllers...
#dotnet #fsharp #webdev #spa #importmaps
#dotnet #fsharp #webdev #spa #importmaps
Decide to try vite-rails, because its apparently the cool thing to do. Follow the installation instructions. Nothing works.
That's the JS ecosystem for ya 🤷
Decide to try vite-rails, because its apparently the cool thing to do. Follow the installation instructions. Nothing works.
That's the JS ecosystem for ya 🤷