diff --git a/files/en-us/mozilla/firefox/experimental_features/index.md b/files/en-us/mozilla/firefox/experimental_features/index.md index 59ac57e4509b1c3..7be311f25a83f1b 100644 --- a/files/en-us/mozilla/firefox/experimental_features/index.md +++ b/files/en-us/mozilla/firefox/experimental_features/index.md @@ -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). diff --git a/files/en-us/mozilla/firefox/releases/152/index.md b/files/en-us/mozilla/firefox/releases/152/index.md index 3dbb48490e0549b..445d11b82ea214b 100644 --- a/files/en-us/mozilla/firefox/releases/152/index.md +++ b/files/en-us/mozilla/firefox/releases/152/index.md @@ -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)).