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 80e0084

Browse files
docs(configuration): add module.parser.javascript.importMeta (#6103)
1 parent 686b83e commit 80e0084

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

‎src/content/configuration/module.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,25 @@ Specifies the behavior of invalid export names in `\"import ... from ...\"`.
203203
};
204204
```
205205

206+
#### module.parser.javascript.importMeta
207+
208+
Enable or disable evaluating `import.meta`.
209+
210+
- Type: `boolean = true`
211+
- Available: 5.68.0+
212+
- Example:
213+
```js
214+
module.exports = {
215+
module: {
216+
parser: {
217+
javascript: {
218+
importMeta: false,
219+
},
220+
},
221+
},
222+
};
223+
```
224+
206225
#### module.parser.javascript.importMetaContext
207226

208227
Enable/disable evaluating [`import.meta.webpackContext`](/api/module-variables/#importmetawebpackcontext).

0 commit comments

Comments
(0)

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