-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Type misalign between webpack and webpack-sources #12294
Copy link
Copy link
Closed
Description
Bug report
In webpack's declarations.d.ts, Source is
export abstract class Source {
size(): number;
map(options?: MapOptions): Object;while in @types/webpack-sources, it is
map(options?: MapOptions): RawSourceMap | null;
What is the expected behavior?
typing of webpack and webpack-sources should be compatible.
In this case I believe the latter is more detailed, so it should be used. BTW, why doesn't webpack use this declaration but instead write its own?
Other relevant information:
webpack version: 5.11.1
Reactions are currently unavailable