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

Webpack: Make Resolve.alias optional
This commit is contained in:
Masahiro Wakame committed 2016-03-26 23:09:31 +09:00
commit 2c4e10086c
2 files changed
+7 -2

No files matched your search

+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;
}