11ty / webc

Single File Web Components
MIT License
1.3k stars 36 forks source link

chore: Use `node:` protocol in imports #168

Open Zearin opened 1 year ago

Zearin commented 1 year ago

The official docs have used the prefix in examples for years.

According to the NodeJS docs for Modules (§Core Modules), the node: “protocol” was added in:

Personally, I like how it makes it easy to distinguish:

zachleat commented 1 year ago

I haven’t found this to work in Node 14, which is our current Node minimum for a bit longer!

Zearin commented 1 year ago

Okay, thanks! 🙏🏽