Skip to content

Commit

Permalink
docs: add parserOptions.importMetaContext (#6028)
Browse files Browse the repository at this point in the history
* docs: add parserOptions.importMetaContext

* Update src/content/configuration/module.mdx

Co-authored-by: Nitin Kumar <snitin315@gmail.com>
  • Loading branch information
ersachin3112 and snitin315 committed Mar 12, 2022
1 parent 92fcbb3 commit d73d1b0
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.importMetaContext

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

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

#### module.parser.javascript.reexportExportsPresence

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.
Expand Down

1 comment on commit d73d1b0

@vercel
Copy link

@vercel vercel bot commented on d73d1b0 Mar 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.