Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support webpack configs that export a function #533

Merged
merged 1 commit into from
Sep 13, 2016

Conversation

grahamb
Copy link
Contributor

@grahamb grahamb commented Aug 29, 2016

Webpack 2 supports webpack configuration files that export a function (see https://webpack.github.io/docs/roadmap.html). This commit adds support for this by testing if the requireed config is a function, and if so, executing it.

Webpack 2 supports webpack configuration files that export a function (see https://webpack.github.io/docs/roadmap.html). This commit adds support for this by testing if the `require`ed config is a function, and if so, executing it.
@coveralls
Copy link

coveralls commented Aug 29, 2016

Coverage Status

Coverage remained the same at 97.729% when pulling 896f984 on grahamb:allow-webpack-func into 8da6a5a on benmosher:master.

@benmosher benmosher merged commit 896f984 into import-js:master Sep 13, 2016
@benmosher
Copy link
Member

Published with Webpack resolver v0.6.0 😎

thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants