Skip to content

Commit 80e0084

Browse files
authored
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

+19
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)