Merge pull request #8665 from akim-mcmath/webpack-resolve-alias-fix

Webpack: Make Resolve.alias optional
This commit is contained in:
Masahiro Wakame
2016-03-26 23:09:31 +09:00
2 changed files with 7 additions and 2 deletions
+6
View File
@@ -247,6 +247,12 @@ configuration = {
devtool: "#inline-source-map"
};
configuration = {
resolve: {
root: __dirname
}
};
loader = {
test: /\.jsx$/,
include: [
+1 -2
View File
@@ -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;
}