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

Ship type declarations for the loader #1617

Open
stof opened this issue Sep 4, 2024 · 0 comments
Open

Ship type declarations for the loader #1617

stof opened this issue Sep 4, 2024 · 0 comments

Comments

@stof
Copy link

stof commented Sep 4, 2024

Feature Proposal

Having type declaration for the loader and its supported options would allow projects using typescripts (either because they use webpack.config.ts or because they use it to check JS code with --checkJs) to validate their options against the supported options (and potentially to get IDE completion as well, depending on how they write their code).

https://github.com/webpack/tooling/ has reusable tools to generate type declarations for supported options based on the JSON schema, used by webpack itself for its supported options. It could probably be reused by this loader.

Feature Use Case

Please paste the results of npx webpack-cli info here, and mention other relevant information

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

No branches or pull requests

1 participant