You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/blog/directives-and-the-platform-boundary.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ But now we are watching a new trend emerge. Frameworks are inventing their own t
16
16
17
17
There is an important distinction: these are not standardized JavaScript features. Runtimes don't understand them, there is no governing specification, and each framework is free to define its own meaning, rules, and edge cases.
18
18
19
-
This can feel ergonomic today, but it also increases confusion, complicates debugging, and imposes costs on tooling and portability—patterns we’ve seen before.
19
+
This can feel ergonomic today, but it also increases confusion, complicates debugging, and imposes costs on tooling and portability, patterns we’ve seen before.
20
20
21
21
---
22
22
@@ -77,7 +77,7 @@ export const action = server(
77
77
)
78
78
```
79
79
80
-
APIs carry provenance (imports), versioning (packages), composition (functions), and testability. Directives typically don’t — and trying to encode options into them can quickly become a design smell.
80
+
APIs carry provenance (imports), versioning (packages), composition (functions), and testability. Directives typically don’t, and trying to encode options into them can quickly become a design smell.
81
81
82
82
---
83
83
@@ -104,7 +104,7 @@ An example of where we've seen these struggles before is with decorators. TypeSc
104
104
105
105
### “Isn’t this just a Babel plugin/macro with different syntax?”
106
106
107
-
Functionally, yes — both directives and custom transforms can change behavior at compile time. The issue isn’t capability; it’s surface and optics.
107
+
Functionally, yes. Both directives and custom transforms can change behavior at compile time. The issue isn’t capability; it’s surface and optics.
108
108
109
109
- Directives look like the platform. No import, no owner, no explicit source. They signal “this is JavaScript.”
110
110
- APIs/macros point to an owner. Imports provide provenance, versioning, and discoverability.
0 commit comments