Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add import.meta.webpackContext #6029

Merged
merged 4 commits into from Mar 12, 2022

Conversation

ersachin3112
Copy link
Contributor

fix #6003

add import.meta.webpackContext

@vercel
Copy link

vercel bot commented Mar 11, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/webpack-docs/webpack-js-org/FEsdwrKZkTdA57TJjFVN7Q2b9JTA
✅ Preview: https://webpack-js-org-git-fork-ersachin3112-add-im-bc3fd7-webpack-docs.vercel.app

src/content/api/module-variables.mdx Outdated Show resolved Hide resolved

Returns same as `require.context` but only for `javascript/auto` and `javascript/esm`.

- Type: `function`
Copy link
Member

Choose a reason for hiding this comment

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

Let's document the whole type.

Suggested change
- Type: `function`
- Type:
```ts
(
request: string,
options?: {
recursive?: boolean;
regExp?: RegExp;
include?: RegExp;
exclude?: RegExp;
preload?: boolean | number;
prefetch?: boolean | number;
chunkName?: string;
exports?: string | string[][];
mode?: "sync" | "eager" | "weak" | "lazy" | "lazy-once";
}
) => webpack.Context

Co-authored-by: Nitin Kumar <snitin315@gmail.com>
@snitin315 snitin315 merged commit 92fcbb3 into webpack:master Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document webpack change: import.meta.webpackContext
2 participants