Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dc12545

Browse files
docs(configuration): document overrideStrict (#7309)
1 parent 8729c4f commit dc12545

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

‎src/content/configuration/module.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ module.exports = {
238238
// Parser options for javascript modules
239239
// e.g, enable parsing of require.ensure syntax
240240
requireEnsure: true,
241+
// Set the module to `'strict'` or `'non-strict'` mode. This can affect the module's behavior, as some behaviors differ between strict and non-strict modes.
242+
overrideStrict: 'non-strict',
241243
},
242244
'javascript/auto': {
243245
// ditto
@@ -528,6 +530,26 @@ Enable/disable evaluating [`import.meta.webpackContext`](/api/module-variables/#
528530
};
529531
```
530532

533+
#### module.parser.javascript.overrideStrict
534+
535+
Set the module to `'strict'` or `'non-strict'` mode. This can affect the module's behavior, as some behaviors differ between strict and non-strict modes.
536+
537+
- Type: `'strict' | 'non-strict'`
538+
- Available: 5.93.0+
539+
- Example:
540+
541+
```js
542+
module.exports = {
543+
module: {
544+
parser: {
545+
javascript: {
546+
overrideStrict: 'non-strict',
547+
},
548+
},
549+
},
550+
};
551+
```
552+
531553
#### module.parser.javascript.reexportExportsPresence
532554

533555
Specifies the behavior of invalid export names in `\"export ... from ...\"`. This might be useful to disable during the migration from `\"export ... from ...\"` to `\"export type ... from ...\"` when reexporting types in TypeScript.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /