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

Added error if needed runtime dependency is a devDependency #384

Merged
merged 3 commits into from
May 3, 2018

Conversation

HyperBrain
Copy link
Member

@HyperBrain HyperBrain commented May 2, 2018

What did you implement:

Relates to #383, #369 (comment), #230

This PR introduces better error handling for the case that a runtime dependency detected by Webpack is only found in devDependencies and would lead to an Unable to import module error when deployed.
If the detected module is forcefully excluded it will, however, succeed.

How did you implement it:

Added a check for devDependencies in the production module loop.

How can we verify it:

Move a needed dependency to devDependencies. It should error out as long as the dependency is not forcefully excluded.

Todos:

  • Write tests
  • Write documentation
  • Fix linting errors
  • Make sure code coverage hasn't dropped
  • Provide verification config / commands / resources
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES
Is it a breaking change?: NO

@HyperBrain HyperBrain added this to the 5.1.4 milestone May 2, 2018
@HyperBrain HyperBrain merged commit f32272a into master May 3, 2018
@HyperBrain HyperBrain deleted the improvement/better-missing-dep-errors branch May 3, 2018 11:44
@HyperBrain
Copy link
Member Author

Released with 5.1.5

jamesmbourne pushed a commit to jamesmbourne/serverless-webpack that referenced this pull request Oct 15, 2019
…vement/better-missing-dep-errors

Added error if needed runtime dependency is a devDependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant