-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Webpack resolver: Support webpack.config.babel.js filename #194
Comments
Makes sense. That is cool, didn't realize that was possible. Reminds me of #182. I'd like to avoid slowly rewriting Webpack. This seems like a simple enough thing to fix without biting off integration with enhanced-resolve, though. Does #164 seem like a workable solution? I didn't really understand what it was doing until reading the SO post you linked. |
Looks like #164 is using |
Hmm, I read it as "if the config file has an extension that I've not used it either, but I can imagine it working in such a way. I'll try it out, and see if I can add some tests. Or if you've got a different idea you want to try, I'm up for that. Sounds like |
|
If you rename your file to
webpack.config.babel
then webpack will transpile it with babel on the fly.However doing this makes the webpack resolver fail to load the webpack config.
Right now, my workaround is:
Would love this to be supported in core. But looking at the code I wasn't certain how you'd want it implemented. I was thinking of extracting this into a function. But feedback is appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: