Enable Import Attributes in 138 release
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
People
(Reporter: allstars.chh, Assigned: allstars.chh)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(2 files)
The feature "Import Attributes" has been landed for a while, and the spec has been merged into ecma262 spec https://github.com/tc39/ecma262/pull/3057 recently.
I plan to enable it in Nightly in 138 release. https://whattrainisitnow.com/release/?version=138
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
Comment 4•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4da337806c5d
https://hg.mozilla.org/mozilla-central/rev/42e4bb6a1d09
| Assignee | ||
Comment 6•1 year ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: This is a Javascript feature that allows JS to instruct the JS engine how a module should be loaded.
[Affects Firefox for Android]: Yes
[Suggested wording]: Import Attributes.
[Links (documentation, blog post, etc)]:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import/with
Comment 7•1 year ago
|
||
Added to the 138 nightly release notes and on track to be in the final release notes.
I'm updating the docs on MDN. I tested this in Nightly and it looks like only with { type: "json" } is currently enabled.
with { type: "css" } still throws an "invalid module type" error. Could you please confirm?
It'll help me update the browser compat table accurately. Thanks!
| Assignee | ||
Comment 10•11 months ago
|
||
(In reply to Dipika from comment #9)
I'm updating the docs on MDN. I tested this in Nightly and it looks like only
with { type: "json" }is currently enabled.
with { type: "css" }still throws an "invalid module type" error. Could you please confirm?
It'll help me update the browser compat table accurately. Thanks!
That's correct, "JSON modules" are supported, whereas "CSS modules" aren't. (bug 1720570)
Comment 11•11 months ago
|
||
I've updated MDN docs (browser compat and release notes) for this feature.
The work can be tracked in https://github.com/mdn/content/issues/38878.
Thanks Yoshi for your timely help!
Updated•10 months ago
|
Description
•