Attributes divergence · Issue #34 · tc39/proposal-import-attributes (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
One of the concerns with arbitrary attributes it's a possible divergence in an already divergent ecosystem (tooling configuration are not shared for instance).
For the Babel implementation the plan would be to make it available, via the Babel AST, to plugins. Plugin authors would be free to define their own attributes.
- We could restrict syntactically to a
type
attribute? Maybe Use general key-value syntax, or a single string? #12 would make more sense then. - Similarly to https://github.com/WebAssembly/tool-conventions/, we could create a convention for tooling or host defined attributes.