diff --git a/webpack/webpack-tests.ts b/webpack/webpack-tests.ts index 65f3fa720..9f2efe15c 100644 --- a/webpack/webpack-tests.ts +++ b/webpack/webpack-tests.ts @@ -247,6 +247,12 @@ configuration = { devtool: "#inline-source-map" }; +configuration = { + resolve: { + root: __dirname + } +}; + loader = { test: /\.jsx$/, include: [ diff --git a/webpack/webpack.d.ts b/webpack/webpack.d.ts index 82825dc28..035b49b01 100644 --- a/webpack/webpack.d.ts +++ b/webpack/webpack.d.ts @@ -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; } -