question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please export Resolver and ResolvePluginInstance from types.d.ts

See original GitHub issue

Similar 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
alexander-akaitcommented, Mar 11, 2021

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

0reactions
webpack-botcommented, Sep 25, 2021

Issue was closed because of inactivity.

If you think this is still a valid issue, please file a new issue with additional information.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found