Hacker News new | ask | show | jobs
by sktrdie 2210 days ago
I love how Browsers & Deno have shown how we can do dependency management using urls containing code (ESM). This is a huge step forward.

This makes me think, is file-based code-split strategy enough?

What if we'd put code (not data) behind GraphQL and request only the actual piece of code we need to use?

import { foo } from 'https://graphql/{ give: { me: { foo }}}'

1 comments

Just `import { foo } from 'https://graphql/'` is enough for that.