Skip to content
Permalink
Browse files

fix(plugin-webpack): fix config resolution when providing a string

  • Loading branch information
MarshallOfSound committed May 4, 2018
1 parent d59e744 commit 576844e5cae6cbcecebd6eb023cedb3640683eb6
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/plugin/webpack/src/WebpackPlugin.ts
@@ -28,7 +28,7 @@ export default class WebpackPlugin extends PluginBase<WebpackPluginConfig> {
}

private resolveConfig = (config: Configuration | string) => {
if (typeof config === 'string') return require(config) as Configuration;
if (typeof config === 'string') return require(path.resolve(path.dirname(this.baseDir), config)) as Configuration;
return config;
}

0 comments on commit 576844e

Please sign in to comment.
You can’t perform that action at this time.