Please export Resolver and ResolvePluginInstance from types.d.ts
See original GitHub issueSimilar to how Compiler
and the various plugin interfaces are exported, please add Resolver
and ResolvePluginInstance
to the exports.
export {
AutomaticPrefetchPlugin,
// ...
Compiler,
// ...
Resolver,
ResolvePluginInstance,
// ...
}
I am updating some plugins to work with Webpack 5, and in a typescript environment, I’m missing those types when trying to create a resolve plugin.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
TypeScript: Documentation - Module Resolution
Module resolution is the process the compiler uses to figure out what an import refers to. Consider an import statement like import {...
Read more >TypeScript getting error TS2304: cannot find name ' require'
For example, import express from "express"; is now telling me that I need to try installing @types/express or add a .d.ts file for...
Read more >TypeScript errors and how to fix them
If you want to export a constant from a definition file ( d.ts ) ... When you want to use a type to...
Read more >ts-loader
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); module.exports = { ... resolve: { plugins: [new ...
Read more >TypeScript
npm init -y npm i fastify npm i -D typescript @types/node ... Create an index.ts file - this will contain the server code;...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Feel free to send PR, just add them here https://github.com/webpack/webpack/blob/master/lib/index.js#L31 in js docs and they will be in types, don’t forget to run https://github.com/webpack/webpack/blob/master/package.json#L156 before adding
Issue was closed because of inactivity.
If you think this is still a valid issue, please file a new issue with additional information.