mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-31 11:40:47 +08:00
Merge pull request #8665 from akim-mcmath/webpack-resolve-alias-fix
Webpack: Make Resolve.alias optional
This commit is contained in:
@@ -247,6 +247,12 @@ configuration = {
|
||||
devtool: "#inline-source-map"
|
||||
};
|
||||
|
||||
configuration = {
|
||||
resolve: {
|
||||
root: __dirname
|
||||
}
|
||||
};
|
||||
|
||||
loader = {
|
||||
test: /\.jsx$/,
|
||||
include: [
|
||||
|
||||
Vendored
+1
-2
@@ -147,7 +147,7 @@ declare module "webpack" {
|
||||
|
||||
interface Resolve {
|
||||
/** Replace modules by other modules or paths. */
|
||||
alias: { [key: string]: string; };
|
||||
alias?: { [key: string]: string; };
|
||||
/**
|
||||
* The directory (absolute path) that contains your modules.
|
||||
* May also be an array of directories.
|
||||
@@ -536,4 +536,3 @@ declare module "webpack" {
|
||||
//export default webpack;
|
||||
export = webpack;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user