mkg0 / jest-webpack-resolver

path resolver for jest through the webpack.config. Auto detect webpack's resolve properties like aliases, plugins and more
44 stars 6 forks source link

Doesn't work if the webpack config exports a function. #1

Closed DzoQiEuoi closed 7 years ago

DzoQiEuoi commented 7 years ago

In Webpack 2 it is possible for the webpack config file to export a function. You should check the type and then handle it appropriately.

mkg0 commented 7 years ago

Thanks for the report. i ll handle it asap. Also it needs to support array of configurations too.