Closed Bug 1950836 Opened 1 year ago Closed 1 year ago

Enable Import Attributes in 138 release

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
relnote-firefox --- 138+
firefox138 --- fixed

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

Blocks: 1736059
No longer depends on: 1736059
Attachment #9468915 - Attachment description: Bug 1950836 - Enable import.attributes in nightly build. → Bug 1950836 - Enable import.attributes by default.
Summary: Enable Import Attributes in Nightly 138 release → Enable Import Attributes in 138 release
Pushed by allstars.chh@gmail.com: https://hg.mozilla.org/integration/autoland/rev/4da337806c5d Enable import.attributes by default. r=jonco,dminor https://hg.mozilla.org/integration/autoland/rev/42e4bb6a1d09 Remove the pref in ini files. r=jonco,dminor
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch

Please request a release note, thank you!

Flags: needinfo?(allstars.chh)

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

relnote-firefox: --- → ?
Flags: needinfo?(allstars.chh)

Added to the 138 nightly release notes and on track to be in the final release notes.

Duplicate of this bug: 1777526
Depends on: 1947719

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!

Flags: needinfo?(allstars.chh)

(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)

Flags: needinfo?(allstars.chh)

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!

Depends on: 1965620
Blocks: 1965620
No longer depends on: 1965620
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: