-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: some @types/webpack types error (#504)
- Loading branch information
Showing
14 changed files
with
143 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,6 @@ | |
"tslib": "2.4.1", | ||
"tsm": "2.3.0", | ||
"typescript": "^5.2.2", | ||
"webpack": "5.89.0" | ||
"webpack": "^5.90.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ import { RsdoctorWebpackSDK } from '@rsdoctor/sdk'; | |
import { Manifest, SDK } from '@rsdoctor/types'; | ||
import { Time } from '@rsdoctor/utils/common'; | ||
import path from 'path'; | ||
import type { Compiler, ResolvePluginInstance, Resolver } from 'webpack'; | ||
import type { Compiler, Resolver } from 'webpack'; | ||
|
||
interface RsdoctorResolverPluginOptions {} | ||
|
||
|
@@ -16,6 +16,18 @@ interface ResolveRequestWithContext { | |
context: ResolveRequestContext; | ||
} | ||
|
||
/** | ||
* Plugin instance. ResolvePluginInstance in [email protected] is not the interface, it's a type. | ||
*/ | ||
declare interface ResolvePluginInstance { | ||
[index: string]: any; | ||
|
||
/** | ||
* The run point of the plugin, required method. | ||
*/ | ||
apply: (resolver: Resolver) => void; | ||
} | ||
|
||
export class RsdoctorResolverPlugin implements ResolvePluginInstance { | ||
protected tapOptions = { | ||
name: 'RsdoctorResolverPlugin', | ||
|
Oops, something went wrong.