Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions files/en-us/mozilla/firefox/experimental_features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,22 @@ This includes all the instance methods on `Intl.Locale` that are prefixed with "
- `javascript.options.experimental.intl_locale_info`
- : Set to `true` to enable on Nightly.

### Text module import

The `with` clause [`{ type: "text" }`](/en-US/docs/Web/JavaScript/Reference/Statements/import/with#text_modules_type_text) allows importing a module's source as a string value.
The media type of the response is ignored, and the content is parsed as text even if the source contains scripts or other executable code.
([Firefox bug 2024854](https://bugzil.la/2024854)).

| Release channel | Version added | Enabled by default? |
| ----------------- | ------------- | ------------------- |
| Nightly | 152 | No |
| Developer Edition | 152 | No |
| Beta | 152 | No |
| Release | 152 | No |

- `javascript.options.experimental.import_text`
- : Set to `true` to enable.

### Multiple import maps

Support for [multiple import maps](/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap#merging_multiple_import_maps).
Expand Down
6 changes: 6 additions & 0 deletions files/en-us/mozilla/firefox/releases/152/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,9 @@ You can find more such features on the [Experimental features](/en-US/docs/Mozil
The [TC39 Intl.Locale info proposal](https://github.com/tc39/proposal-intl-locale-info) is now supported on nightly builds if the preference is enabled.
This includes all the [`Intl.Locale` instance methods prefixed with "get"](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale#instance_methods).
([Firefox bug 1693576](https://bugzil.la/1693576)).

- **Text module import**: `javascript.options.experimental.import_text`

The `with` clause [`{ type: "text" }`](/en-US/docs/Web/JavaScript/Reference/Statements/import/with#text_modules_type_text) allows importing a module's source as a string value.
The media type of the response is ignored, and the content is parsed as text even if the source contains scripts or other executable code.
([Firefox bug 2024854](https://bugzil.la/2024854)).
Loading