-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(@ngtools/webpack): support Webpack 5
The `@ngtools/webpack` package now officially supports Webpack 5. It is also now built against Webpack 5 types. Webpack 4 support is temporarily maintained while the remainder of the tooling is transitioned.
- Loading branch information
1 parent
73a5610
commit 789e05d
Showing
11 changed files
with
334 additions
and
73 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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import * as webpack from 'webpack'; | ||
import { Compiler as webpack4Compiler, loader as webpack4Loader } from '@types/webpack'; | ||
|
||
// Webpack 5 transition support types | ||
declare module 'webpack' { | ||
export type WebpackFourCompiler = webpack4Compiler; | ||
|
||
export type InputFileSystem = webpack.Compiler['inputFileSystem']; | ||
|
||
export namespace compilation { | ||
export type Compilation = webpack.Compilation; | ||
export type Module = webpack.Module; | ||
} | ||
|
||
export namespace loader { | ||
export type LoaderContext = webpack4Loader.LoaderContext; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.