We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
module.parser.javascript.importMeta
1 parent 686b83e commit 80e0084Copy full SHA for 80e0084
src/content/configuration/module.mdx
@@ -203,6 +203,25 @@ Specifies the behavior of invalid export names in `\"import ... from ...\"`.
203
};
204
```
205
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
225
#### module.parser.javascript.importMetaContext
226
227
Enable/disable evaluating [`import.meta.webpackContext`](/api/module-variables/#importmetawebpackcontext).
0 commit comments