Skip to content

Commit

Permalink
docs(configuration): add module.parser.javascript.importMeta (webpa…
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Apr 24, 2022
1 parent 686b83e commit 80e0084
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/content/configuration/module.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,25 @@ Specifies the behavior of invalid export names in `\"import ... from ...\"`.
};
```

#### module.parser.javascript.importMeta

Enable or disable evaluating `import.meta`.

- Type: `boolean = true`
- Available: 5.68.0+
- Example:
```js
module.exports = {
module: {
parser: {
javascript: {
importMeta: false,
},
},
},
};
```

#### module.parser.javascript.importMetaContext

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

0 comments on commit 80e0084

Please sign in to comment.