-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
Allow options.configFile to be undefined #1345
Comments
Thanks for this. I'm on a train and slightly tipsy, but on the face of it I think you're probably right. Ideally I'd expect Feels like it's probably an easy fix. If you'd like to submit a PR I'll happily review it. Failing that I'll likely take a look at some point. |
Prospective fix PR is up - just waiting for GitHub Actions to get happy again; there seem to be some issues. |
And apropos of nothing, amazing work on https://code2020.dev/ - it's a gift to the community! ❤️ 🌻 |
Shipping with /~https://github.com/TypeStrong/ts-loader/releases/tag/v9.2.4 - should appear as soon as this gets run /~https://github.com/TypeStrong/ts-loader/runs/3149744280?check_suite_focus=true |
Expected Behaviour
options.configFile
should allow passing inundefined
to fallback the standard config fileWe hit this with a webpack config generator function that looks like:
Sometimes we want to override the config file but usually we do not
Actual Behaviour
Passing in
undefined
produces the following build error:Again, I'd expect
undefined
to be treated as if theconfigFile
property has been omitted entirelySteps to Reproduce the Problem
examples/vanilla
, update the rules to:yarn run build
Location of a Minimal Repository that Demonstrates the Issue.
Apply this diff in this repo:
The text was updated successfully, but these errors were encountered: